diff --git a/system-setting/frontend/src/business/workspace/environment/EnvironmentList.vue b/system-setting/frontend/src/business/workspace/environment/EnvironmentList.vue index f85260d9c9..c1eceec159 100644 --- a/system-setting/frontend/src/business/workspace/environment/EnvironmentList.vue +++ b/system-setting/frontend/src/business/workspace/environment/EnvironmentList.vue @@ -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); diff --git a/system-setting/frontend/src/business/workspace/member/WorkspaceMember.vue b/system-setting/frontend/src/business/workspace/member/WorkspaceMember.vue index 9baa29f27c..8af525938e 100644 --- a/system-setting/frontend/src/business/workspace/member/WorkspaceMember.vue +++ b/system-setting/frontend/src/business/workspace/member/WorkspaceMember.vue @@ -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);