|
@@ -95,17 +95,17 @@
|
|
|
<a-card :body-style="{ padding: '10px' }" :bordered="false" style="margin: 10px">
|
|
|
<!-- 操作按钮区域 -->
|
|
|
<div style="margin-bottom: 4px">
|
|
|
- <a-button @click="handleAdd" type="primary" preIcon="ant-design:plus" style="margin-right: 1%">新增(add)</a-button>
|
|
|
+ <a-button @click="handleAdd" type="primary" preIcon="ant-design:plus" style="margin-right: 1%" v-auth="'baseCode:base_product_archive:add'">新增(add)</a-button>
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
|
<template #overlay>
|
|
|
- <a-menu>
|
|
|
- <a-menu-item key="1" @click="batchHandleDelete">
|
|
|
+ <a-menu v-auth="'baseCode:base_product_archive:deleteBatch'">
|
|
|
+ <a-menu-item key="1" @click="batchHandleDelete" >
|
|
|
<Icon icon="ant-design:delete-outlined" />
|
|
|
删除
|
|
|
</a-menu-item>
|
|
|
</a-menu>
|
|
|
</template>
|
|
|
- <a-button v-auth="'baseCode:base_company_information:deleteBatch'"
|
|
|
+ <a-button v-auth="'baseCode:base_product_archive:deleteBatch'"
|
|
|
>批量操作
|
|
|
<Icon icon="mdi:chevron-down" />
|
|
|
</a-button>
|
|
@@ -137,10 +137,10 @@
|
|
|
<template #bodyCell="{ column, record }">
|
|
|
<template v-if="column.key === 'operation'">
|
|
|
<span>
|
|
|
- <a @click="handleemit(record)">编辑(edit)</a>
|
|
|
+ <a @click="handleemit(record)" v-auth="'baseCode:base_product_archive:edit'">编辑(edit)</a>
|
|
|
<a-divider type="vertical" />
|
|
|
- <a-popconfirm title="确定删除吗?" @confirm="() => deleteList(record)">
|
|
|
- <a>删除(delete)</a>
|
|
|
+ <a-popconfirm title="确定删除吗?" @confirm="() => deleteList(record)" v-auth="'baseCode:base_product_archive:delete'">
|
|
|
+ <a v-auth="'baseCode:base_product_archive:delete'">删除(delete)</a>
|
|
|
</a-popconfirm>
|
|
|
</span>
|
|
|
</template>
|