diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index 5ec415c6..c1b630d5 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -1311,6 +1311,15 @@ export default { if (this.sysTypeList.length > 2) { this.courseInfo.sysType3 = this.sysTypeList[2]; //三级的id } + + //受众的处理 + let crowds=[]; + this.courseCrowds.forEach(item=>{ + crowds.push({ + groupId:item.key, + groupName:item.value + }) + }); let saveTeachers = []; this.teacherValues.forEach(item => { @@ -1318,7 +1327,8 @@ export default { }); let postData = { course: this.courseInfo, - teachers: saveTeachers + teachers: saveTeachers, + crowds:crowds }; this.btnLoading = true; let $this = this;