隐藏业务的数据字典中的删除操作

This commit is contained in:
1378012178@qq.com 2025-04-03 10:19:45 +08:00
parent 35d8b6355a
commit 372bb4034c
1 changed files with 15 additions and 15 deletions

View File

@ -1,15 +1,15 @@
<template> <template>
<!--引用表格--> <!--引用表格-->
<BasicTable @register="registerTable" :rowSelection="rowSelection"> <BasicTable @register="registerTable">
<!--插槽:table标题--> <!--插槽:table标题-->
<template #tableTitle> <template #tableTitle>
<a-button type="primary" preIcon="ant-design:plus-outlined" @click="handleCreate"> 新增</a-button> <a-button type="primary" preIcon="ant-design:plus-outlined" @click="handleCreate"> 新增</a-button>
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button> <a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> <j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
<a-button type="primary" @click="handlerRefreshCache" preIcon="ant-design:sync-outlined"> 刷新缓存</a-button> <a-button type="primary" @click="handlerRefreshCache" preIcon="ant-design:sync-outlined"> 刷新缓存</a-button>
<a-button type="primary" @click="openRecycleModal(true)" preIcon="ant-design:hdd-outlined"> 回收站</a-button> <!-- <a-button type="primary" @click="openRecycleModal(true)" preIcon="ant-design:hdd-outlined"> 回收站</a-button> -->
<a-dropdown v-if="selectedRowKeys.length > 0"> <!-- <a-dropdown v-if="selectedRowKeys.length > 0">
<template #overlay> <template #overlay>
<a-menu> <a-menu>
<a-menu-item key="1" @click="batchHandleDelete"> <a-menu-item key="1" @click="batchHandleDelete">
@ -18,10 +18,10 @@
</a-menu-item> </a-menu-item>
</a-menu> </a-menu>
</template> </template>
<a-button>批量操作 <a-button>批量操作
<Icon icon="ant-design:down-outlined"></Icon> <Icon icon="ant-design:down-outlined"></Icon>
</a-button> </a-button>
</a-dropdown> </a-dropdown> -->
</template> </template>
<!--操作栏--> <!--操作栏-->
<template #action="{ record }"> <template #action="{ record }">
@ -33,7 +33,7 @@
<!--字典配置抽屉--> <!--字典配置抽屉-->
<DictItemList @register="registerDrawer" /> <DictItemList @register="registerDrawer" />
<!--回收站弹窗--> <!--回收站弹窗-->
<DictRecycleBinModal @register="registerModal1" @success="reload" /> <!-- <DictRecycleBinModal @register="registerModal1" @success="reload" /> -->
</template> </template>
<script lang="ts" name="system-dict" setup> <script lang="ts" name="system-dict" setup>
@ -182,13 +182,13 @@ function getTableAction(record) {
label: '字典配置', label: '字典配置',
onClick: handleItem.bind(null, record), onClick: handleItem.bind(null, record),
}, },
{ // {
label: '删除', // label: '',
popConfirm: { // popConfirm: {
title: '确定删除吗?', // title: '?',
confirm: handleDelete.bind(null, record), // confirm: handleDelete.bind(null, record),
}, // },
}, // },
]; ];
} }
</script> </script>