From f1c4fdd865a80bb4d635bff69f3c9aae47b4035e Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 24 七月 2024 09:37:49 +0800 Subject: [PATCH] 工单故障类型使用字典 --- src/router/index.js | 37 +++++++++++++++++++++++++++++++++---- 1 files changed, 33 insertions(+), 4 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index f244038..7a8b8f5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -64,7 +64,7 @@ { path: '', component: Layout, - redirect: 'index', + redirect: 'screen', children: [ { path: 'index', @@ -74,13 +74,23 @@ } ] }, + // { + // path: '', + // component: Layout, + // redirect: 'index', + // children: [ + // { + // path: 'index', + // component: () => import('@/views/index'), + // name: 'Index', + // meta: { title: '棣栭〉', icon: 'dashboard', affix: true } + // } + // ] + // }, { path: '/screen', - component: Layout, hidden: true, component: () => import('@/views/screen/index'), - name: 'Profile', - meta: { title: '澶у睆淇℃伅', icon: 'user' } }, { path: '/user', @@ -100,6 +110,25 @@ // 鍔ㄦ�佽矾鐢憋紝鍩轰簬鐢ㄦ埛鏉冮檺鍔ㄦ�佸幓鍔犺浇 export const dynamicRoutes = [ + + { + path: '/data-manage/data-detail', + component: Layout, + hidden: true, + permissions: ['data:manage:detail'], + children: [ + { + path: 'index/:type/:typeId', + component: () => import('@/views/system/data-manage/data-detail'), + name: 'DataDetail', + meta: { + title: '鏁版嵁璇︽儏', + activeMenu: '/data-manage' + } + } + ] + }, + { path: '/system/user-auth', component: Layout, -- Gitblit v1.8.0