fix(系统设置): 工作空间成员与环境管理列表选中数量展示错误
--bug=1027203 --user=王旭 【系统设置】工作空间管理员-成员批量添加到项目和环境批量添加到环境组-选择数量显示为0 https://www.tapd.cn/55049933/s/1387249
This commit is contained in:
parent
88fe1b6f5f
commit
0960fb2f52
|
@ -476,7 +476,13 @@ export default {
|
|||
this.$emit('selection', selection);
|
||||
},
|
||||
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);
|
||||
this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRow);
|
||||
this.$emit('selection', selection);
|
||||
|
|
|
@ -301,7 +301,13 @@ export default {
|
|||
this.$emit('selection', selection);
|
||||
},
|
||||
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);
|
||||
this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRows);
|
||||
this.$emit('selection', selection);
|
||||
|
|
Loading…
Reference in New Issue