Commit f0a3bfb6 authored by 张伯涛's avatar 张伯涛

部分修改

parent 8cf70f69
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<BasicTable @register="registerTable" :searchInfo="searchInfo"> <BasicTable @register="registerTable" :searchInfo="searchInfo">
<template #toolbar> <template #toolbar>
<a-button type="primary" @click="handleCreate">新增</a-button> <a-button type="primary" @click="handleCreate">新增</a-button>
<a-button :disabled="getRowSelection().selectedRowKeys <=0" type="primary" @click="handleExport">删除</a-button>
</template> </template>
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
...@@ -54,7 +55,7 @@ const [registerModal, { openModal }] = useModal(); ...@@ -54,7 +55,7 @@ const [registerModal, { openModal }] = useModal();
const [registerResetPassword, { openModal: openResetPasswordModal }] = useModal(); const [registerResetPassword, { openModal: openResetPasswordModal }] = useModal();
const [registerImport, { openModal: openImportModal }] = useModal(); const [registerImport, { openModal: openImportModal }] = useModal();
const searchInfo = reactive<Recordable>({}); const searchInfo = reactive<Recordable>({});
const [registerTable, { reload, updateTableDataRecord, getSearchInfo, getForm }] = useTable({ const [registerTable, { reload, updateTableDataRecord, getSearchInfo, getForm,getRowSelection }] = useTable({
title: '脱敏算法', title: '脱敏算法',
api: async (params) => { api: async (params) => {
console.log(params) console.log(params)
...@@ -70,7 +71,8 @@ const [registerTable, { reload, updateTableDataRecord, getSearchInfo, getForm }] ...@@ -70,7 +71,8 @@ const [registerTable, { reload, updateTableDataRecord, getSearchInfo, getForm }]
return { ...response}; return { ...response};
}, },
rowKey: 'id', rowKey: 'businessId',
rowSelection: true,
columns, columns,
formConfig: { formConfig: {
labelWidth: 10, labelWidth: 10,
......
...@@ -2,36 +2,43 @@ ...@@ -2,36 +2,43 @@
export const tableList: any[] = [ export const tableList: any[] = [
{ {
businessId: 1,
"name" : "aqlbook_founction_buidin_rule", "name" : "aqlbook_founction_buidin_rule",
"des" : "自定义函数内置", "des" : "自定义函数内置",
"module" : "自定义函数", "module" : "自定义函数",
}, },
{ {
businessId: 2,
"name" : "aqlbook_founction_buidin_rule", "name" : "aqlbook_founction_buidin_rule",
"des" : "自定义函数内置", "des" : "自定义函数内置",
"module" : "自定义函数", "module" : "自定义函数",
}, },
{ {
businessId: 3,
"name" : "aqlbook_founction_buidin_rule", "name" : "aqlbook_founction_buidin_rule",
"des" : "自定义函数内置", "des" : "自定义函数内置",
"module" : "自定义函数", "module" : "自定义函数",
}, },
{ {
businessId: 4,
"name" : "aqlbook_founction_buidin_rule", "name" : "aqlbook_founction_buidin_rule",
"des" : "自定义函数内置", "des" : "自定义函数内置",
"module" : "自定义函数", "module" : "自定义函数",
}, },
{ {
businessId: 5,
"name" : "aqlbook_founction_buidin_rule", "name" : "aqlbook_founction_buidin_rule",
"des" : "自定义函数内置", "des" : "自定义函数内置",
"module" : "自定义函数", "module" : "自定义函数",
}, },
{ {
businessId: 6,
"name" : "aqlbook_founction_buidin_rule", "name" : "aqlbook_founction_buidin_rule",
"des" : "自定义函数内置", "des" : "自定义函数内置",
"module" : "自定义函数", "module" : "自定义函数",
}, },
{ {
businessId: 7,
"name" : "aqlbook_founction_buidin_rule", "name" : "aqlbook_founction_buidin_rule",
"des" : "自定义函数内置", "des" : "自定义函数内置",
"module" : "自定义函数", "module" : "自定义函数",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment