修改router 权限标识

This commit is contained in:
caoqianming 2022-03-17 13:56:42 +08:00
parent 943e93f685
commit cd889bd50c
1 changed files with 31 additions and 31 deletions

View File

@ -213,7 +213,7 @@ export const asyncRoutes = [
component: Layout, component: Layout,
redirect: '/wpm/worktask', redirect: '/wpm/worktask',
name: 'wpm', name: 'wpm',
meta: { title: '生产执行', icon: 'execute', perms: ['equipment_set'] }, meta: { title: '生产执行', icon: 'execute', perms: ['wpm_manage'] },
children: [ children: [
{ {
path: 'worktask', path: 'worktask',
@ -231,20 +231,20 @@ export const asyncRoutes = [
path: 'operationdo/:id', path: 'operationdo/:id',
name: 'operationdo', name: 'operationdo',
component: () => import('@/views/wpm/operationdo'), component: () => import('@/views/wpm/operationdo'),
meta: { title: '车间操作跳转界面', icon: 'home', perms: ['index_manage'] }, meta: { title: '车间操作执行', icon: 'home'},
hidden: true hidden: true
}, },
{ {
path: 'need', path: 'need',
name: 'need', name: 'need',
component: () => import('@/views/wpm/need'), component: () => import('@/views/wpm/need'),
meta: { title: '过程检验', icon: 'processTest', perms: ['wpm_need'] } meta: { title: '过程检验', icon: 'processTest', perms: ['wpm_test'] }
}, },
{ {
path: 'productjy', path: 'productjy',
name: 'productjy', name: 'productjy',
component: () => import('@/views/wpm/productjy'), component: () => import('@/views/wpm/productjy'),
meta: { title: '成品检验', icon: 'finishedCheck', perms: ['wpm_productjy'] } meta: { title: '成品检验', icon: 'finishedCheck', perms: ['wpm_test'] }
}, },
{ {
path: 'firstCheck', path: 'firstCheck',
@ -746,33 +746,33 @@ export const asyncRoutes = [
} }
] ]
}, },
{ // {
path: '/testModel', // path: '/testModel',
component: Layout, // component: Layout,
redirect: '/testModel/faceLogin/', // redirect: '/testModel/faceLogin/',
name: 'testModel', // name: 'testModel',
meta: { title: '测试模块', icon: 'home' }, // meta: { title: '测试模块', icon: 'home' },
children: [ // children: [
{ // {
path: 'faceLogin', // path: 'faceLogin',
name: 'faceLogin', // name: 'faceLogin',
component: () => import('@/views/testModel/faceLogin'), // component: () => import('@/views/testModel/faceLogin'),
meta: { title: '人脸识别登录', icon: 'home' } // meta: { title: '人脸识别登录', icon: 'home' }
}, // },
{ // {
path: 'caram', // path: 'caram',
name: 'caram', // name: 'caram',
component: () => import('@/views/testModel/caram'), // component: () => import('@/views/testModel/caram'),
meta: { title: '相机调用', icon: 'home' } // meta: { title: '相机调用', icon: 'home' }
}, // },
{ // {
path: 'markImage', // path: 'markImage',
name: 'markImage', // name: 'markImage',
component: () => import('@/views/testModel/markImage'), // component: () => import('@/views/testModel/markImage'),
meta: { title: '图片标记', icon: 'home' } // meta: { title: '图片标记', icon: 'home' }
} // }
] // ]
}, // },
// 404 page must be placed at the end !!! // 404 page must be placed at the end !!!
{ path: '*', redirect: '/404', hidden: true } { path: '*', redirect: '/404', hidden: true }
] ]