fix(系统设置): 工作空间成员批量操作时选中的数量问题

This commit is contained in:
shiziyuan9527 2022-10-25 11:30:27 +08:00 committed by lyh
parent 223dc1c56e
commit 9e584350d7
1 changed files with 1 additions and 7 deletions

View File

@ -12,13 +12,6 @@
@select="handleSelect" @select="handleSelect"
ref="userTable"> ref="userTable">
<el-table-column v-if="hasPermission('WORKSPACE_PROJECT_MANAGER:READ+ADD_USER')" type="selection" width="50"/> <el-table-column v-if="hasPermission('WORKSPACE_PROJECT_MANAGER:READ+ADD_USER')" type="selection" width="50"/>
<ms-table-header-select-popover v-show="total>0"
:page-size="pageSize>total?total:pageSize"
:total="total"
:select-data-counts="selectDataCounts"
:table-data-count-in-page="tableData.length"
@selectPageAll="isSelectDataAll(false)"
@selectAll="isSelectDataAll(true)"/>
<el-table-column width="30" min-width="30" :resizable="false" align="center"> <el-table-column width="30" min-width="30" :resizable="false" align="center">
<template v-slot:default="scope"> <template v-slot:default="scope">
<show-more-btn v-permission="['WORKSPACE_PROJECT_MANAGER:READ+ADD_USER']" <show-more-btn v-permission="['WORKSPACE_PROJECT_MANAGER:READ+ADD_USER']"
@ -171,6 +164,7 @@ export default {
return getCurrentUser(); return getCurrentUser();
}, },
initTableData() { initTableData() {
this.selectRows = new Set();
if (getCurrentWorkspaceId() === null) { if (getCurrentWorkspaceId() === null) {
return false; return false;
} }