fix(系统设置): 工作空间成员与环境管理列表选中数量展示错误

--bug=1027203 --user=王旭 【系统设置】工作空间管理员-成员批量添加到项目和环境批量添加到环境组-选择数量显示为0 https://www.tapd.cn/55049933/s/1387249
This commit is contained in:
WangXu10 2023-06-27 19:35:59 +08:00 committed by 刘瑞斌
parent 88fe1b6f5f
commit 0960fb2f52
2 changed files with 14 additions and 2 deletions

View File

@ -476,7 +476,13 @@ export default {
this.$emit('selection', selection); this.$emit('selection', selection);
}, },
handleSelect(selection, row) { handleSelect(selection, row) {
_handleSelect(this, selection, row, this.selectRow); let selectRowMap = new Map();
for (let selectRow of this.selectRows) {
selectRowMap.set(selectRow.id, selectRow);
}
_handleSelect(this, selection, row, selectRowMap);
let selectRow = Array.from(selectRowMap.values());
this.selectRow = new Set(selectRow);
setUnSelectIds(this.environments, this.condition, this.selectRow); setUnSelectIds(this.environments, this.condition, this.selectRow);
this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRow); this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRow);
this.$emit('selection', selection); this.$emit('selection', selection);

View File

@ -301,7 +301,13 @@ export default {
this.$emit('selection', selection); this.$emit('selection', selection);
}, },
handleSelect(selection, row) { handleSelect(selection, row) {
_handleSelect(this, selection, row, this.selectRows); let selectRowMap = new Map();
for (let selectRow of this.selectRows) {
selectRowMap.set(selectRow.id, selectRow);
}
_handleSelect(this, selection, row, selectRowMap);
let selectRow = Array.from(selectRowMap.values());
this.selectRows = new Set(selectRow);
setUnSelectIds(this.tableData, this.condition, this.selectRows); setUnSelectIds(this.tableData, this.condition, this.selectRows);
this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRows); this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRows);
this.$emit('selection', selection); this.$emit('selection', selection);