Browse Source

管理后台-门店管理:权限设置

panyong 3 years ago
parent
commit
8b3b846bff

+ 1 - 1
htmldev/manage/src/router/modules/outlet.js

@@ -12,7 +12,7 @@ const outlet = {
       path: '',
       component: () => import('@/views/outlet/list/index'),
       name: 'BusinessOutlet',
-      meta: { title: '门店列表', icon: 'el-icon-s-shop' }
+      meta: { title: '门店列表', icon: 'el-icon-s-shop', roleValue: 'outlet_list_show' }
     }
   ]
 }

+ 2 - 2
htmldev/manage/src/views/outlet/list/index.vue

@@ -28,7 +28,7 @@
         <el-form-item class="ml-10">
           <el-button icon="el-icon-plus"
                      type="primary"
-                     v-permission="'outlet_list_add'"
+                     v-permission="'outlet_list_add_0'"
                      @click="add">新增
           </el-button>
         </el-form-item>
@@ -94,7 +94,7 @@
       </el-table-column>
       <el-table-column label="操作" width="100">
         <template slot-scope="scope">
-          <el-button type="text" v-permission="'outlet_list_edit'" @click="edit(scope.row)">编辑</el-button>
+          <el-button type="text" v-permission="'outlet_list_edit_0'" @click="edit(scope.row)">编辑</el-button>
         </template>
       </el-table-column>
     </el-table>