|
@@ -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 = [];
|