mirror of https://github.com/jeecgboot/jeecg-boot
parent
0b2a98d6f1
commit
6c5060236d
|
@ -363,7 +363,7 @@
|
||||||
},
|
},
|
||||||
onClearSelected() {
|
onClearSelected() {
|
||||||
this.hiding = true
|
this.hiding = true
|
||||||
this.checkedKeys = {}
|
this.checkedKeys = []
|
||||||
this.currSelected = {}
|
this.currSelected = {}
|
||||||
this.form.resetFields()
|
this.form.resetFields()
|
||||||
this.selectedKeys = []
|
this.selectedKeys = []
|
||||||
|
|
|
@ -208,6 +208,14 @@
|
||||||
deleteAction(that.url.delete, {depId: this.currentDeptId, userId: id}).then((res) => {
|
deleteAction(that.url.delete, {depId: this.currentDeptId, userId: id}).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
that.$message.success(res.message);
|
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();
|
that.loadData();
|
||||||
} else {
|
} else {
|
||||||
that.$message.warning(res.message);
|
that.$message.warning(res.message);
|
||||||
|
|
Loading…
Reference in New Issue