修改router 权限标识
This commit is contained in:
parent
943e93f685
commit
cd889bd50c
|
@ -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 }
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue