From 7b8e6e7235e24be12a1d90a3315a8e440e014d8e Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 28 Sep 2020 16:13:06 +0800 Subject: [PATCH] router name --- client/src/router/index.js | 26 +++++++++++++------------- client/src/views/dashboard/index.vue | 21 +++++++++++++++++---- server/server/urls.py | 2 +- 3 files changed, 31 insertions(+), 18 deletions(-) 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 @@