瀏覽代碼

12/04 14:19

合课BUG修复
mo 4 年之前
父節點
當前提交
963a5e8d51

+ 8 - 12
src/views/teamDetail/componentCourse/compoundClass.vue

@@ -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) {

+ 1 - 1
src/views/teamDetail/components/modals/class-pay-list-item.vue

@@ -229,7 +229,7 @@ export default {
         }else{
           return null
         }
-        // 说明验证通过
+        // 说明验证通过 
        
       } else {
         this.$message.error("请填写必要信息");