...
代码块 | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "key": "train_mentor", "model": "TrainMentoring", "label": "导师子集", "parent_id": "disciple_id", "icon": "icon-hcm-training", "view": "multi" }, { "key": "train_mentoring", "model": "TrainMentoring", "label": "徒弟子集", "parent_id": "train_mentor.mentor_id", "icon": "icon-hcm-training", "view": "multi" }, { "key": "teach_session", "model": "TrainSession", "label": "讲师授课子集", "parent_id": "teacher.employee_id", "icon": "icon-hcm-training", "view": "multi" }, { "key": "online_session", "model": "TrainSessionStudent", "label": "在线学习子集", "parent_id": "employee_id", "icon": "icon-hcm-training", "view": "multi" } |
16、清除培训相关人员信息
当删除人员的时候,可能出现以下情况,因此需要培训系统关联人数据:
提供两个接口来处理这种情况:
- /api/train.get.employee.data, 参数为: {employee_id: xxx} ,用来查询所有关联数据
- /api/train.remove.employee.data,参数为{employee_id: xxx},用来执行删除操作
注意:操作不可逆,删除前需要仔细确认!
执行结果: