mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
课程受众未能修改的问题
This commit is contained in:
@@ -1312,13 +1312,23 @@ export default {
|
|||||||
this.courseInfo.sysType3 = this.sysTypeList[2]; //三级的id
|
this.courseInfo.sysType3 = this.sysTypeList[2]; //三级的id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//受众的处理
|
||||||
|
let crowds=[];
|
||||||
|
this.courseCrowds.forEach(item=>{
|
||||||
|
crowds.push({
|
||||||
|
groupId:item.key,
|
||||||
|
groupName:item.value
|
||||||
|
})
|
||||||
|
});
|
||||||
|
|
||||||
let saveTeachers = [];
|
let saveTeachers = [];
|
||||||
this.teacherValues.forEach(item => {
|
this.teacherValues.forEach(item => {
|
||||||
saveTeachers.push(item);
|
saveTeachers.push(item);
|
||||||
});
|
});
|
||||||
let postData = {
|
let postData = {
|
||||||
course: this.courseInfo,
|
course: this.courseInfo,
|
||||||
teachers: saveTeachers
|
teachers: saveTeachers,
|
||||||
|
crowds:crowds
|
||||||
};
|
};
|
||||||
this.btnLoading = true;
|
this.btnLoading = true;
|
||||||
let $this = this;
|
let $this = this;
|
||||||
|
|||||||
Reference in New Issue
Block a user