瀏覽代碼

提交修复

mo 4 年之前
父節點
當前提交
0e57d1ec36
共有 2 個文件被更改,包括 23 次插入26 次删除
  1. 18 21
      src/views/teamBuild/teamSeting/components/setClassV2.vue
  2. 5 5
      src/views/teamDetail/components/resetClass.vue

+ 18 - 21
src/views/teamBuild/teamSeting/components/setClassV2.vue

@@ -819,7 +819,7 @@ export default {
       activeStudentList: [],
       classList: [],
       appoint: false,
-      activeSoundList:[]
+      activeSoundList: [],
     };
   },
   //生命周期 - 创建完成(可以访问当前this实例)
@@ -941,7 +941,7 @@ export default {
           createClass(obj).then((res) => {
             if (res.code == 200) {
               this.$message.success("创建成功");
-              this.resetClassFrom()
+              this.resetClassFrom();
               this.getList();
               this.newClassVisible = false;
             }
@@ -960,7 +960,7 @@ export default {
         teaching: [],
         memo: [],
       };
-       this.changeMemo([])
+      this.changeMemo([]);
     },
     removeStudent(item) {
       removeStudents({
@@ -1156,7 +1156,7 @@ export default {
         if (res.code == 200) {
           this.$message.success("创建成功");
           this.getList();
-          this.resetClassFrom()
+          this.resetClassFrom();
           this.studentVisible = false;
           this.newClassVisible = false;
         }
@@ -1434,20 +1434,17 @@ export default {
           });
         }
       });
-      if( this.activeType == 'HIGH' || this.activeType=='HIGH_ONLINE'){
-        this.getNoClassStudent(row.type,row.memo);
-        let arr = row.memo.split(',')
-        console.log(arr)
-        this.activeSoundList = this.soundList.filter(sound=>{
-          return arr.indexOf(sound.id+'') != -1
-        })
-        console.log(this.activeSoundList)
-      }else{
-        this.activeSoundList = this.soundList
+      if (this.activeType == "HIGH" || this.activeType == "HIGH_ONLINE") {
+        this.getNoClassStudent(row.type, row.memo);
+        let arr = row.memo.split(",");
+
+        this.activeSoundList = this.soundList.filter((sound) => {
+          return arr.indexOf(sound.id + "") != -1;
+        });
+      } else {
+        this.activeSoundList = this.soundList;
         this.getNoClassStudent(row.type);
-          console.log(this.activeSoundList)
       }
-
     },
     // 排课开始
     arrangeStart() {
@@ -1614,13 +1611,13 @@ export default {
       ];
     },
     chioseHightype(val) {
-      this.$set(this.newClassForm, "subjectIdList", []);
-      this.newClassForm.subjectId = "";
+      this.changeMemo([]);
       if (val == "HIGH_ONLINE") {
         this.newClassForm.teaching = [];
-      } else {
-        this.newClassForm.memo = [];
       }
+      this.newClassForm.subjectId = "";
+      this.$set(this.newClassForm, "subjectIdList", []);
+      this.$set(this.newClassForm, "memo", []);
     },
     lookDeatil(row) {
       console.log(row);
@@ -1756,7 +1753,7 @@ export default {
           teaching: null,
           memo: [],
         };
-        this.resetClassFrom()
+        this.resetClassFrom();
       }
     },
     studentVisible(val) {

+ 5 - 5
src/views/teamDetail/components/resetClass.vue

@@ -1367,14 +1367,14 @@ export default {
       }
     },
     chioseHightype(val) {
+     this.changeMemo([]);
       if (val == "HIGH_ONLINE") {
         this.newClassForm.teaching = [];
-        this.$set(this.newClassForm, "subjectIdList", []);
-      } else {
-        this.newClassForm.memo = [];
-        this.newClassForm.subjectId = "";
       }
-    },
+      this.newClassForm.subjectId = "";
+      this.$set(this.newClassForm, "subjectIdList", []);
+      this.$set(this.newClassForm, "memo", []);
+      },
     changeStartClassTime(item) {
       // item.endClassTime = ''
       this.$set(item, "endClassTime", "");