|
@@ -213,16 +213,6 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
submitResetClass () {
|
|
|
- console.log(this.idList)
|
|
|
- let arr = this.idList.split(',')
|
|
|
- for(let i in arr){
|
|
|
- if(arr[i] == this.id){
|
|
|
- arr.splice(i,1)
|
|
|
- }
|
|
|
- }
|
|
|
- let ids = arr.splite(',')
|
|
|
- console.log(ids)
|
|
|
- return
|
|
|
let maskForm = this.maskForm;
|
|
|
if (!maskForm.startTime || !maskForm.endTime) {
|
|
|
this.$message.error("请填写开始时间或结束时间");
|
|
@@ -238,7 +228,13 @@ export default {
|
|
|
if (teachingTeacherIdList.length <= 0) {
|
|
|
let teachingTeacherIdList = null;
|
|
|
}
|
|
|
-
|
|
|
+ let arr = this.idList.split(',')
|
|
|
+ for(let i in arr){
|
|
|
+ if(arr[i] == this.id){
|
|
|
+ arr.splice(i,1)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ let ids = arr.join(',')
|
|
|
let obj = {
|
|
|
actualTeacherId: maskForm.teacher,
|
|
|
startClassTimeStr: maskForm.startTime,
|
|
@@ -250,7 +246,7 @@ export default {
|
|
|
groupType: maskForm.groupType,
|
|
|
schoolId: this.maskForm.address,
|
|
|
teachMode: this.maskForm.teachMode,
|
|
|
- mergeCourseIds:this.idList
|
|
|
+ mergeCourseIds:ids
|
|
|
};
|
|
|
courseMerge(obj).then(res => {
|
|
|
if (res.code == 200) {
|