tangning 4 months ago
parent
commit
1706062677
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/device/index.vue

+ 2 - 2
src/views/device/index.vue

@@ -3,7 +3,7 @@
     <div class="desc-wrap-BasicTable">
       <BasicTable @register="registerTable">
         <template #toolbar>
-          <a-button type="primary" v-if="hasPermission([RoleEnum.SUPER, RoleEnum.TEST])" @click="handleAdd"> {{t('routes.retailer.allff')}}</a-button>
+          <a-button type="primary" v-if="hasPermission([RoleEnum.SUPER, RoleEnum.TEST, RoleEnum.LEVEL2])" @click="handleAdd"> {{t('routes.retailer.allff')}}</a-button>
         </template>
         <template #action="{ record }">
           <TableAction
@@ -350,7 +350,7 @@
         actionColumn: {
           width: 150,
           title: t('common.operating'),
-          ifShow: hasPermission([RoleEnum.SUPER, RoleEnum.TEST]),
+          ifShow: hasPermission([RoleEnum.SUPER, RoleEnum.TEST,RoleEnum.LEVEL2]),
           dataIndex: 'action',
           slots: { customRender: 'action' },
         },