diff --git a/src/views/configManage/softwareManage/components/software-history.vue b/src/views/configManage/softwareManage/components/software-history.vue index c1ca15e0..ec9d2d55 100644 --- a/src/views/configManage/softwareManage/components/software-history.vue +++ b/src/views/configManage/softwareManage/components/software-history.vue @@ -293,6 +293,7 @@ watch( :pagination="tablePagination" :row-selection="{ type: 'checkbox', + selectedRowKeys: tableState.selectedRowKeys, onChange: fnTableSelectedRowKeys, }" > diff --git a/src/views/monitor/job/index.vue b/src/views/monitor/job/index.vue index aa4c5094..b75f88ec 100644 --- a/src/views/monitor/job/index.vue +++ b/src/views/monitor/job/index.vue @@ -738,6 +738,7 @@ onMounted(() => { :scroll="{ x: true }" :row-selection="{ type: 'checkbox', + selectedRowKeys: tableState.selectedRowKeys, onChange: fnTableSelectedRowKeys, }" > diff --git a/src/views/monitor/job/log.vue b/src/views/monitor/job/log.vue index 15481346..ff445bc7 100644 --- a/src/views/monitor/job/log.vue +++ b/src/views/monitor/job/log.vue @@ -565,6 +565,7 @@ onMounted(() => { :pagination="tablePagination" :row-selection="{ type: 'checkbox', + selectedRowKeys: tableState.selectedRowKeys, onChange: fnTableSelectedRowKeys, }" > diff --git a/src/views/monitor/logininfor/index.vue b/src/views/monitor/logininfor/index.vue index 69b0a303..ab0390ef 100644 --- a/src/views/monitor/logininfor/index.vue +++ b/src/views/monitor/logininfor/index.vue @@ -522,6 +522,7 @@ onMounted(() => { :pagination="tablePagination" :row-selection="{ type: 'checkbox', + selectedRowKeys: tableState.selectedRowKeys, onChange: fnTableSelectedRows, }" > diff --git a/src/views/monitor/operlog/index.vue b/src/views/monitor/operlog/index.vue index faf3e0e0..b4a81f2d 100644 --- a/src/views/monitor/operlog/index.vue +++ b/src/views/monitor/operlog/index.vue @@ -559,6 +559,7 @@ onMounted(() => { :pagination="tablePagination" :row-selection="{ type: 'checkbox', + selectedRowKeys: tableState.selectedRowKeys, onChange: fnTableSelectedRowKeys, }" > diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue index 898c063f..ac8e62f8 100644 --- a/src/views/system/config/index.vue +++ b/src/views/system/config/index.vue @@ -628,6 +628,7 @@ onMounted(() => { :scroll="{ x: true }" :row-selection="{ type: 'checkbox', + selectedRowKeys: tableState.selectedRowKeys, onChange: fnTableSelectedRowKeys, }" > diff --git a/src/views/system/dict/data.vue b/src/views/system/dict/data.vue index 33b56797..057d9e1a 100644 --- a/src/views/system/dict/data.vue +++ b/src/views/system/dict/data.vue @@ -629,6 +629,7 @@ onMounted(() => { :pagination="tablePagination" :row-selection="{ type: 'checkbox', + selectedRowKeys: tableState.selectedRowKeys, onChange: fnTableSelectedRowKeys, }" > diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index b0427660..51926e58 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -639,6 +639,7 @@ onMounted(() => { :scroll="{ x: true }" :row-selection="{ type: 'checkbox', + selectedRowKeys: tableState.selectedRowKeys, onChange: fnTableSelectedRowKeys, }" > diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue index da1372ee..1c5bd5a0 100644 --- a/src/views/system/notice/index.vue +++ b/src/views/system/notice/index.vue @@ -563,6 +563,7 @@ onMounted(() => { :scroll="{ x: true }" :row-selection="{ type: 'checkbox', + selectedRowKeys: tableState.selectedRowKeys, onChange: fnTableSelectedRowKeys, }" > diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index 92e93a35..0b1d1fee 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -565,6 +565,7 @@ onMounted(() => { :scroll="{ x: true }" :row-selection="{ type: 'checkbox', + selectedRowKeys: tableState.selectedRowKeys, onChange: fnTableSelectedRowKeys, }" > diff --git a/src/views/system/role/auth-user.vue b/src/views/system/role/auth-user.vue index 51bd8637..fdc76d49 100644 --- a/src/views/system/role/auth-user.vue +++ b/src/views/system/role/auth-user.vue @@ -463,6 +463,7 @@ onMounted(() => { :pagination="tablePagination" :row-selection="{ type: 'checkbox', + selectedRowKeys: tableState.selectedRowKeys, onChange: fnTableSelectedRowKeys, }" > diff --git a/src/views/system/role/components/auth-user-select.vue b/src/views/system/role/components/auth-user-select.vue index b9e4291b..1aafb6e1 100644 --- a/src/views/system/role/components/auth-user-select.vue +++ b/src/views/system/role/components/auth-user-select.vue @@ -273,6 +273,7 @@ watch( :pagination="tablePagination" :row-selection="{ type: 'checkbox', + selectedRowKeys: tableState.selectedRowKeys, onChange: fnTableSelectedRowKeys, }" > diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index af7c69a7..4ffd3136 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -869,6 +869,7 @@ onMounted(() => { :scroll="{ x: true }" :row-selection="{ type: 'checkbox', + selectedRowKeys: tableState.selectedRowKeys, onChange: fnTableSelectedRowKeys, }" > diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 57810591..a4317be5 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -142,7 +142,7 @@ let tableColumns: ColumnsType = [ dataIndex: 'groupName', key: 'groupName', align: 'center', - }, + }, { title: '创建时间', dataIndex: 'createTime', @@ -199,7 +199,7 @@ function fnTableSize({ key }: MenuInfo) { } /**表格斑马纹 */ -function fnTableStriped(_record: unknown, index: number):any { +function fnTableStriped(_record: unknown, index: number): any { return tableState.striped && index % 2 === 1 ? 'table-striped' : undefined; } @@ -877,6 +877,7 @@ onMounted(() => { :scroll="{ x: true }" :row-selection="{ type: 'checkbox', + selectedRowKeys: tableState.selectedRowKeys, onChange: fnTableSelectedRowKeys, }" >