Browse Source

管理后台-权限配置

panyong 3 years ago
parent
commit
6830f19d97

+ 3 - 3
htmldev/manage/src/router/modules/business.js

@@ -11,14 +11,14 @@ const businessRouter = {
       path: 'oms',
       component: () => import('@/views/business/oms/index'),
       name: 'BusinessOMS',
-      meta: { title: '点单管理', icon: 'el-icon-s-order', roleValue: 'business_oms_show' },
+      meta: { title: '点单', icon: 'el-icon-s-order', roleValue: 'business_oms_show' },
       redirect: '/business/oms/order',
       children: [
         {
           path: 'order',
           component: () => import('@/views/business/oms/list/index'),
           name: 'BusinessOMSOrder',
-          meta: { title: '点单列表', roleValue: 'business_oms_order_list_show' }
+          meta: { title: '点单', roleValue: 'business_oms_order_list_show' }
         },
         {
           path: 'detail',
@@ -33,7 +33,7 @@ const businessRouter = {
       path: 'saveWine',
       component: () => import('@/views/business/saveWine/index'),
       name: 'BusinessSaveWine',
-      meta: { title: '存/取酒记录', icon: 'el-icon-goods', roleValue: 'business_saveWine_show' }
+      meta: { title: '存/取酒', icon: 'el-icon-goods', roleValue: 'business_saveWine_show' }
     },
     {
       path: 'place',

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

@@ -4,7 +4,7 @@ const outlet = {
   path: '/outlet',
   component: Layout,
   name: 'Outlet',
-  meta: { title: '门店管理', icon: 'el-icon-s-shop', roleValue: 'business_outlet_show' },
+  meta: { title: '门店管理', icon: 'el-icon-s-shop', roleValue: 'outlet_show' },
   redirect: '/outlet',
   alwaysShow: true,
   children: [

+ 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="'business_outlet_list_add'"
+                     v-permission="'outlet_list_add'"
                      @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="'business_outlet_list_edit'" @click="edit(scope.row)">编辑</el-button>
+          <el-button type="text" v-permission="'outlet_list_edit'" @click="edit(scope.row)">编辑</el-button>
         </template>
       </el-table-column>
     </el-table>