Browse Source

批量删除

1
mo 4 years ago
parent
commit
90e5717541
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/views/teamDetail/teamCourseList.vue

+ 6 - 3
src/views/teamDetail/teamCourseList.vue

@@ -821,7 +821,7 @@ export default {
           if (res.code == 200) {
           if (res.code == 200) {
             this.$message.success("删除成功");
             this.$message.success("删除成功");
             this.getList();
             this.getList();
-            this.deleteList = [];
+          this.clearCom()
           }
           }
         }).catch((e)=>{
         }).catch((e)=>{
             this.$refs.addCompound.isLook = true
             this.$refs.addCompound.isLook = true
@@ -1037,8 +1037,11 @@ export default {
       if (indexNum + "") {
       if (indexNum + "") {
         this.deleteList.splice(indexNum, 1);
         this.deleteList.splice(indexNum, 1);
       }
       }
-      console.log(row);
-      this.$refs.tableList.toggleRowSelection(row);
+      this.tableList.forEach((course,index)=>{
+        if(course.id == row.id){
+           this.$refs.tableList.toggleRowSelection(course,false);
+        }
+      })
     },
     },
     clearCom() {
     clearCom() {
       // this.deleteList = [];
       // this.deleteList = [];