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() }); /** 处理多选框选中数据 */