Commit 01c4e361 by wangzhihui

```

feat(course-allocation): 初始化选中课程列表并同步配置课程数据
1 parent ff073c3a
......@@ -422,6 +422,7 @@ export default {
res.list.forEach((item) => (item.isSelect = true))
}
this.staffTagCourseList = res.list ? res.list : []
this.selectStaffCourseList = []
this.allStaffCourseList = deepClone(this.staffTagCourseList)
this.updateTotalDuration(this.staffTagCourseList)
})
......@@ -439,6 +440,12 @@ export default {
: []
).filter((item) => String(item.courseId) !== id)
this.updateTotalDuration(this.allStaffCourseList)
this.extendConfig.courseList = this.allStaffCourseList.map((item) => {
return {
courseId: item.courseId,
courseTitle: item.courseName
}
})
},
updateTotalDuration(data) {
this.selectObj.courseTotalDuration = 0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!