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

部分修改

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