diff --git a/client/src/router/index.js b/client/src/router/index.js index c0ffb58..46f7875 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -52,6 +52,17 @@ export const constantRoutes = [ component: () => import('@/views/404'), hidden: true }, + { + path: '/qualification', + component: Layout, + redirect: '/qualification', + children: [{ + path: '', + name: 'Qualification', + component: () => import('@/views/ability/qualification'), + meta: { title: '检验检测资质', icon: 'table', perms: ['qualification_view'] } + }] + }, { path: '/cma', component: Layout, @@ -60,7 +71,7 @@ export const constantRoutes = [ path: '', name: 'CMA', component: () => import('@/views/ability/cma'), - meta: { title: '检测能力(总部)', icon: 'table' } + meta: { title: '检测能力(总部CMA+CNAS)', icon: 'table', perms: ['cma_view'] } }] }, { @@ -71,21 +82,10 @@ export const constantRoutes = [ path: '', name: 'CMA2', component: () => import('@/views/ability/cma2'), - meta: { title: '检测能力(分子公司)', icon: 'table' } + meta: { title: '检测能力(分子公司CMA)', icon: 'table', perms: ['cma2_view'] } } ] }, - { - path: '/qualification', - component: Layout, - redirect: '/qualification', - children: [{ - path: '', - name: 'Qualification', - component: () => import('@/views/ability/qualification'), - meta: { title: '资质查询', icon: 'table' } - }] - }, ] /** diff --git a/client/src/views/dashboard/index.vue b/client/src/views/dashboard/index.vue index b362bf1..ba27b9b 100644 --- a/client/src/views/dashboard/index.vue +++ b/client/src/views/dashboard/index.vue @@ -1,6 +1,19 @@