From c38510dc5d523b9f06149bfad9e14cdb258ef3da Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Fri, 6 May 2022 04:40:49 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=A3=20=E6=8F=90=E4=BE=9B=E5=8E=9F?= =?UTF-8?q?=E7=94=9F=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kicc-ui/src/views/system/config/index.vue | 31 +++++++++++++++++------ kicc-ui/src/views/system/role/index.vue | 3 ++- kicc-ui/src/views/system/user/index.vue | 3 ++- 3 files changed, 27 insertions(+), 10 deletions(-) diff --git a/kicc-ui/src/views/system/config/index.vue b/kicc-ui/src/views/system/config/index.vue index 39132a53..e6909049 100644 --- a/kicc-ui/src/views/system/config/index.vue +++ b/kicc-ui/src/views/system/config/index.vue @@ -46,6 +46,7 @@ {{ '参数配置列表' }}
- 新增 - 编辑 - 删除 + 新增参数 + 修改参数 + 删除参数
@@ -274,11 +290,10 @@ } /** 处理多选框选中数据 */ - function handleSelectionChange(selection?: Recordable) { - const rawRows = toRaw(selection?.rows) || []; - state.ids = rawRows.map(item => item.id); - state.single = rawRows.length != 1; - state.multiple = !rawRows.length; + function handleSelectionChange(selectedRowKeys: string[]) { + state.ids = selectedRowKeys; + state.single = selectedRowKeys.length != 1; + state.multiple = !selectedRowKeys.length; } /** 新增按钮操作,行内新增与工具栏局域新增通用 */ diff --git a/kicc-ui/src/views/system/role/index.vue b/kicc-ui/src/views/system/role/index.vue index 3d8198e9..d4326140 100644 --- a/kicc-ui/src/views/system/role/index.vue +++ b/kicc-ui/src/views/system/role/index.vue @@ -97,7 +97,8 @@ dataIndex: 'action', slots: { customRender: 'action' }, fixed: false - } + }, + handleSearchInfoFn: () => clearSelectedRowKeys() }); /** 处理多选框选中数据 */ diff --git a/kicc-ui/src/views/system/user/index.vue b/kicc-ui/src/views/system/user/index.vue index 352fe059..15873197 100644 --- a/kicc-ui/src/views/system/user/index.vue +++ b/kicc-ui/src/views/system/user/index.vue @@ -132,7 +132,8 @@ dataIndex: 'action', slots: { customRender: 'action' }, fixed: false - } + }, + handleSearchInfoFn: () => clearSelectedRowKeys() }); /** 处理多选框选中数据 */