浏览代码

04/12 修改专业刷新问题

1
mo 4 年之前
父节点
当前提交
ec088952f7
共有 1 个文件被更改,包括 8 次插入6 次删除
  1. 8 6
      src/views/teamDetail/components/studentList.vue

+ 8 - 6
src/views/teamDetail/components/studentList.vue

@@ -1628,7 +1628,8 @@ export default {
     getList() {
     getList() {
       getintoClass({ musicGroupId: this.teamid }).then((res) => {
       getintoClass({ musicGroupId: this.teamid }).then((res) => {
         if (res.code == 200) {
         if (res.code == 200) {
-          this.leftList = res.data;
+          this.$set(this,'leftList',res.data)
+          // this.leftList = res.data;
         }
         }
       });
       });
       this.getTeamStudent();
       this.getTeamStudent();
@@ -2312,6 +2313,7 @@ export default {
     // 修改专业
     // 修改专业
     resetSubject(row) {
     resetSubject(row) {
       this.activeId = row.userId;
       this.activeId = row.userId;
+      this.maskSoundForm.subject = row.subjectId
       this.subjectVisible = true;
       this.subjectVisible = true;
       //   resetStudentSubject().then(res=>{]})
       //   resetStudentSubject().then(res=>{]})
     },
     },
@@ -2329,11 +2331,11 @@ export default {
           this.$message.success("修改成功");
           this.$message.success("修改成功");
           this.subjectVisible = false;
           this.subjectVisible = false;
           this.maskForm.subject = "";
           this.maskForm.subject = "";
-          getintoClass({ musicGroupId: this.id }).then((res) => {
-            if (res.code == 200) {
-              this.leftList = res.data;
-            }
-          });
+          // getintoClass({ musicGroupId: this.id }).then((res) => {
+          //   if (res.code == 200) {
+          //     this.leftList = res.data;
+          //   }
+          // });
           this.getList();
           this.getList();
         }
         }
       });
       });