Commit 9a80028a0b48625c34eece2b82d603a80163c90e

Authored by zhangdaihao
1 parent 78a2a2ec

解决issue #309 #300

ant-design-vue-jeecg/src/views/system/DepartList.vue
... ... @@ -363,7 +363,7 @@
363 363 },
364 364 onClearSelected() {
365 365 this.hiding = true
366   - this.checkedKeys = {}
  366 + this.checkedKeys = []
367 367 this.currSelected = {}
368 368 this.form.resetFields()
369 369 this.selectedKeys = []
... ...
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);
... ...