Commit 9a80028a0b48625c34eece2b82d603a80163c90e
1 parent
78a2a2ec
解决issue #309 #300
Showing
2 changed files
with
9 additions
and
1 deletions
ant-design-vue-jeecg/src/views/system/DepartList.vue
@@ -363,7 +363,7 @@ | @@ -363,7 +363,7 @@ | ||
363 | }, | 363 | }, |
364 | onClearSelected() { | 364 | onClearSelected() { |
365 | this.hiding = true | 365 | this.hiding = true |
366 | - this.checkedKeys = {} | 366 | + this.checkedKeys = [] |
367 | this.currSelected = {} | 367 | this.currSelected = {} |
368 | this.form.resetFields() | 368 | this.form.resetFields() |
369 | this.selectedKeys = [] | 369 | this.selectedKeys = [] |
ant-design-vue-jeecg/src/views/system/modules/DeptUserInfo.vue
@@ -208,6 +208,14 @@ | @@ -208,6 +208,14 @@ | ||
208 | deleteAction(that.url.delete, {depId: this.currentDeptId, userId: id}).then((res) => { | 208 | deleteAction(that.url.delete, {depId: this.currentDeptId, userId: id}).then((res) => { |
209 | if (res.success) { | 209 | if (res.success) { |
210 | that.$message.success(res.message); | 210 | that.$message.success(res.message); |
211 | + if (this.selectedRowKeys.length>0){ | ||
212 | + for(let i =0; i<this.selectedRowKeys.length;i++){ | ||
213 | + if (this.selectedRowKeys[i] == id){ | ||
214 | + this.selectedRowKeys.splice(i,1); | ||
215 | + break; | ||
216 | + } | ||
217 | + } | ||
218 | + } | ||
211 | that.loadData(); | 219 | that.loadData(); |
212 | } else { | 220 | } else { |
213 | that.$message.warning(res.message); | 221 | that.$message.warning(res.message); |