Browse Source

产品分类-添加按钮权限

jingbb 4 days ago
parent
commit
d2d0ad019b
1 changed files with 4 additions and 2 deletions
  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'
       },
     ];
   }