This commit is contained in:
zhangdaihao 2019-07-19 16:15:21 +08:00
parent 78a2a2ecb7
commit 9a80028a0b
2 changed files with 9 additions and 1 deletions

View File

@ -363,7 +363,7 @@
},
onClearSelected() {
this.hiding = true
this.checkedKeys = {}
this.checkedKeys = []
this.currSelected = {}
this.form.resetFields()
this.selectedKeys = []

View File

@ -208,6 +208,14 @@
deleteAction(that.url.delete, {depId: this.currentDeptId, userId: id}).then((res) => {
if (res.success) {
that.$message.success(res.message);
if (this.selectedRowKeys.length>0){
for(let i =0; i<this.selectedRowKeys.length;i++){
if (this.selectedRowKeys[i] == id){
this.selectedRowKeys.splice(i,1);
break;
}
}
}
that.loadData();
} else {
that.$message.warning(res.message);