From cd889bd50c1034988fb3ee31991f2b3c07782f73 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 17 Mar 2022 13:56:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9router=20=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_client/src/router/index.js | 62 +++++++++++++++++------------------ 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js index 1b9cb25..5012c77 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -213,7 +213,7 @@ export const asyncRoutes = [ component: Layout, redirect: '/wpm/worktask', name: 'wpm', - meta: { title: '生产执行', icon: 'execute', perms: ['equipment_set'] }, + meta: { title: '生产执行', icon: 'execute', perms: ['wpm_manage'] }, children: [ { path: 'worktask', @@ -231,20 +231,20 @@ export const asyncRoutes = [ path: 'operationdo/:id', name: 'operationdo', component: () => import('@/views/wpm/operationdo'), - meta: { title: '车间操作跳转界面', icon: 'home', perms: ['index_manage'] }, + meta: { title: '车间操作执行', icon: 'home'}, hidden: true }, { path: 'need', name: 'need', component: () => import('@/views/wpm/need'), - meta: { title: '过程检验', icon: 'processTest', perms: ['wpm_need'] } + meta: { title: '过程检验', icon: 'processTest', perms: ['wpm_test'] } }, { path: 'productjy', name: 'productjy', component: () => import('@/views/wpm/productjy'), - meta: { title: '成品检验', icon: 'finishedCheck', perms: ['wpm_productjy'] } + meta: { title: '成品检验', icon: 'finishedCheck', perms: ['wpm_test'] } }, { path: 'firstCheck', @@ -746,33 +746,33 @@ export const asyncRoutes = [ } ] }, - { - path: '/testModel', - component: Layout, - redirect: '/testModel/faceLogin/', - name: 'testModel', - meta: { title: '测试模块', icon: 'home' }, - children: [ - { - path: 'faceLogin', - name: 'faceLogin', - component: () => import('@/views/testModel/faceLogin'), - meta: { title: '人脸识别登录', icon: 'home' } - }, - { - path: 'caram', - name: 'caram', - component: () => import('@/views/testModel/caram'), - meta: { title: '相机调用', icon: 'home' } - }, - { - path: 'markImage', - name: 'markImage', - component: () => import('@/views/testModel/markImage'), - meta: { title: '图片标记', icon: 'home' } - } - ] - }, + // { + // path: '/testModel', + // component: Layout, + // redirect: '/testModel/faceLogin/', + // name: 'testModel', + // meta: { title: '测试模块', icon: 'home' }, + // children: [ + // { + // path: 'faceLogin', + // name: 'faceLogin', + // component: () => import('@/views/testModel/faceLogin'), + // meta: { title: '人脸识别登录', icon: 'home' } + // }, + // { + // path: 'caram', + // name: 'caram', + // component: () => import('@/views/testModel/caram'), + // meta: { title: '相机调用', icon: 'home' } + // }, + // { + // path: 'markImage', + // name: 'markImage', + // component: () => import('@/views/testModel/markImage'), + // meta: { title: '图片标记', icon: 'home' } + // } + // ] + // }, // 404 page must be placed at the end !!! { path: '*', redirect: '/404', hidden: true } ]