提交 9b9ad6a5 authored 作者: 张耀丹's avatar 张耀丹

系统管理=》去掉批量删除

上级 b43364fc
<template>
<!--引用表格-->
<BasicTable @register="registerTable" :rowSelection="rowSelection">
<BasicTable @register="registerTable">
<!--插槽:table标题-->
<template #tableTitle>
<a-button type="primary" preIcon="ant-design:plus-outlined" @click="handleCreate" v-auth="'system:dict:add'"> 新增</a-button>
......@@ -8,21 +8,6 @@
<j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls" v-auth="'system:dict:import'">导入</j-upload-button>
<a-button type="primary" @click="handlerRefreshCache" preIcon="ant-design:sync-outlined" v-auth="'system:dict:refresh'"> 刷新缓存</a-button>
<a-button type="primary" @click="openRecycleModal(true)" preIcon="ant-design:hdd-outlined" v-auth="'system:dict:recycleBin'"> 回收站</a-button>
<a-dropdown v-if="selectedRowKeys.length > 0">
<template #overlay>
<a-menu>
<a-menu-item key="1" @click="batchHandleDelete" v-auth="'system:dict:delete'">
<Icon icon="ant-design:delete-outlined"></Icon>
删除
</a-menu-item>
</a-menu>
</template>
<a-button
>批量操作
<Icon icon="ant-design:down-outlined"></Icon>
</a-button>
</a-dropdown>
</template>
<!--操作栏-->
<template #action="{ record }">
......@@ -70,6 +55,7 @@
title: '数据字典',
api: list,
columns: columns,
showIndexColumn: true,
formConfig: {
schemas: searchFormSchema,
},
......
<template>
<div class="p-4">
<BasicTable @register="registerTable" :rowSelection="rowSelection">
<BasicTable @register="registerTable">
<template #tableTitle>
<a-button type="primary" v-auth="'system:permission:add'" preIcon="ant-design:plus-outlined" @click="handleCreate"> 新增菜单</a-button>
<a-button type="primary" preIcon="ic:round-expand" @click="expandAll">展开全部</a-button>
<a-button type="primary" preIcon="ic:round-compress" @click="collapseAll">折叠全部</a-button>
<a-dropdown v-if="checkedKeys.length > 0">
<template #overlay>
<a-menu>
<a-menu-item key="1" @click="batchHandleDelete" v-auth="'system:permission:deleteBatch'">
<Icon icon="ant-design:delete-outlined" />
删除
</a-menu-item>
</a-menu>
</template>
<a-button
>批量操作
<Icon icon="ant-design:down-outlined" />
</a-button>
</a-dropdown>
</template>
<template #action="{ record }">
<TableAction :actions="getTableAction(record)" />
......@@ -52,10 +37,8 @@
size: 'small',
pagination: false,
isTreeTable: true,
striped: true,
useSearchForm: true,
showTableSetting: true,
bordered: true,
showIndexColumn: false,
tableSetting: { fullScreen: true },
formConfig: {
......@@ -141,12 +124,6 @@
async function handleDelete(record) {
await deleteMenu({ id: record.id }, reload);
}
/**
* 批量删除事件
*/
async function batchHandleDelete() {
await batchDeleteMenu({ ids: checkedKeys.value }, reload);
}
/**
* 成功回调
*/
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论