|
@@ -3,6 +3,19 @@
|
|
|
<BasicTable @register="registerTable" :rowSelection="rowSelection">
|
|
|
<template #tableTitle>
|
|
|
<a-button type="primary" preIcon="ant-design:plus-outlined" @click="handleCreate"> 新增(add)</a-button>
|
|
|
+ <a-dropdown v-if="selectedRowKeys.length > 0">
|
|
|
+ <template #overlay>
|
|
|
+ <a-menu>
|
|
|
+ <a-menu-item key="1" @click="batchHandleDelete">
|
|
|
+ <Icon icon="ant-design:delete-outlined"></Icon>
|
|
|
+ 删除(delete)
|
|
|
+ </a-menu-item>
|
|
|
+ </a-menu>
|
|
|
+ </template>
|
|
|
+ <a-button v-auth="'baseCode:base_ship_archive:deleteBatch'">批量操作
|
|
|
+ <Icon icon="mdi:chevron-down"></Icon>
|
|
|
+ </a-button>
|
|
|
+ </a-dropdown>
|
|
|
<!-- <div style="margin-left: 10px;margin-top: 5px">当前登录租户: <span class="tenant-name">{{loginTenantName}}</span> </div> -->
|
|
|
</template>
|
|
|
<!--操作栏-->
|
|
@@ -19,7 +32,7 @@
|
|
|
import { ActionItem, BasicColumn, BasicTable, TableAction,FormSchema } from '/@/components/Table';
|
|
|
import productCassificationModel from './components/productCassificationModel.vue';
|
|
|
import { useListPage } from '/@/hooks/system/useListPage';
|
|
|
- import { list,deleteDict } from './api/productCassification.api';
|
|
|
+ import { list,deleteDict,batchDelete} from './api/productCassification.api';
|
|
|
const showFooter = ref(true);
|
|
|
const [registerModal, { openModal }] = useModal();
|
|
|
//定义表格列字段
|
|
@@ -129,4 +142,10 @@
|
|
|
reload();
|
|
|
}
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 批量删除事件
|
|
|
+ */
|
|
|
+ async function batchHandleDelete() {
|
|
|
+ await batchDelete({ids: selectedRowKeys.value}, handleSuccess);
|
|
|
+ }
|
|
|
</script>
|