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
ant-design-vue-jeecg/src/views/system/modules/DeptUserInfo.vue
... | ... | @@ -208,6 +208,14 @@ |
208 | 208 | deleteAction(that.url.delete, {depId: this.currentDeptId, userId: id}).then((res) => { |
209 | 209 | if (res.success) { |
210 | 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 | 219 | that.loadData(); |
212 | 220 | } else { |
213 | 221 | that.$message.warning(res.message); |
... | ... |