浏览代码

产品分类-添加按钮权限

jingbb 4 天之前
父节点
当前提交
d2d0ad019b
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/views/BasicData/productCassification.vue

+ 4 - 2
src/views/BasicData/productCassification.vue

@@ -2,7 +2,7 @@
   <!--定义表格-->
   <BasicTable @register="registerTable" :rowSelection="rowSelection">
     <template #tableTitle>
-      <a-button type="primary" preIcon="ant-design:plus-outlined" @click="handleCreate"> 新增(add)</a-button>
+      <a-button type="primary" preIcon="ant-design:plus-outlined" @click="handleCreate"  v-auth="'baseCode:base_product_class:add'"> 新增(add)</a-button>
       <a-dropdown v-if="selectedRowKeys.length > 0">
               <template #overlay>
                 <a-menu>
@@ -12,7 +12,7 @@
                   </a-menu-item>
                 </a-menu>
               </template>
-              <a-button v-auth="'baseCode:base_ship_archive:deleteBatch'">批量操作
+              <a-button v-auth="'baseCode:base_product_class:deleteBatch'">批量操作
                 <Icon icon="mdi:chevron-down"></Icon>
               </a-button>
         </a-dropdown>
@@ -106,6 +106,7 @@
       {
         label: '编辑',
         onClick: handleEdit.bind(null, record),
+        auth: 'baseCode:base_product_class:edit'
       },
       {
         label: '删除',
@@ -113,6 +114,7 @@
           title: '确定删除吗?',
           confirm: handleDelete.bind(null, record),
         },
+        auth: 'baseCode:base_product_class:delete'
       },
     ];
   }