提交 6c506023 编写于 作者: JEECG低代码平台's avatar JEECG低代码平台

解决issue #309 #300

上级 0b2a98d6
...@@ -363,7 +363,7 @@ ...@@ -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 @@ ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册