|
|
@ -21,6 +21,7 @@ import Layout from '@/layout' |
|
|
|
title: 'title' // 设置该路由在侧边栏和面包屑中展示的名字
|
|
|
|
title: 'title' // 设置该路由在侧边栏和面包屑中展示的名字
|
|
|
|
icon: 'svg-name' // 设置该路由的图标,对应路径src/assets/icons/svg
|
|
|
|
icon: 'svg-name' // 设置该路由的图标,对应路径src/assets/icons/svg
|
|
|
|
breadcrumb: false // 如果设置为false,则不会在breadcrumb面包屑中显示
|
|
|
|
breadcrumb: false // 如果设置为false,则不会在breadcrumb面包屑中显示
|
|
|
|
|
|
|
|
activeMenu: '/system/user' // 当路由设置了该属性,则会高亮相对应的侧边栏。
|
|
|
|
} |
|
|
|
} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
@ -80,7 +81,7 @@ export const constantRoutes = [ |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: '/auth', |
|
|
|
path: '/system/user-auth', |
|
|
|
component: Layout, |
|
|
|
component: Layout, |
|
|
|
hidden: true, |
|
|
|
hidden: true, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
@ -88,12 +89,12 @@ export const constantRoutes = [ |
|
|
|
path: 'role/:userId(\\d+)', |
|
|
|
path: 'role/:userId(\\d+)', |
|
|
|
component: (resolve) => require(['@/views/system/user/authRole'], resolve), |
|
|
|
component: (resolve) => require(['@/views/system/user/authRole'], resolve), |
|
|
|
name: 'AuthRole', |
|
|
|
name: 'AuthRole', |
|
|
|
meta: { title: '分配角色'} |
|
|
|
meta: { title: '分配角色', activeMenu: '/system/user'} |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: '/auth', |
|
|
|
path: '/system/role-auth', |
|
|
|
component: Layout, |
|
|
|
component: Layout, |
|
|
|
hidden: true, |
|
|
|
hidden: true, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
@ -101,46 +102,46 @@ export const constantRoutes = [ |
|
|
|
path: 'user/:roleId(\\d+)', |
|
|
|
path: 'user/:roleId(\\d+)', |
|
|
|
component: (resolve) => require(['@/views/system/role/authUser'], resolve), |
|
|
|
component: (resolve) => require(['@/views/system/role/authUser'], resolve), |
|
|
|
name: 'AuthUser', |
|
|
|
name: 'AuthUser', |
|
|
|
meta: { title: '分配用户'} |
|
|
|
meta: { title: '分配用户', activeMenu: '/system/role'} |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: '/dict', |
|
|
|
path: '/system/dict-data', |
|
|
|
component: Layout, |
|
|
|
component: Layout, |
|
|
|
hidden: true, |
|
|
|
hidden: true, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'type/data/:dictId(\\d+)', |
|
|
|
path: 'index/:dictId(\\d+)', |
|
|
|
component: (resolve) => require(['@/views/system/dict/data'], resolve), |
|
|
|
component: (resolve) => require(['@/views/system/dict/data'], resolve), |
|
|
|
name: 'Data', |
|
|
|
name: 'Data', |
|
|
|
meta: { title: '字典数据', icon: '' } |
|
|
|
meta: { title: '字典数据', activeMenu: '/system/dict'} |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: '/job', |
|
|
|
path: '/monitor/job-log', |
|
|
|
component: Layout, |
|
|
|
component: Layout, |
|
|
|
hidden: true, |
|
|
|
hidden: true, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'log', |
|
|
|
path: 'index', |
|
|
|
component: (resolve) => require(['@/views/monitor/job/log'], resolve), |
|
|
|
component: (resolve) => require(['@/views/monitor/job/log'], resolve), |
|
|
|
name: 'JobLog', |
|
|
|
name: 'JobLog', |
|
|
|
meta: { title: '调度日志' } |
|
|
|
meta: { title: '调度日志', activeMenu: '/monitor/job'} |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: '/gen', |
|
|
|
path: '/tool/gen-edit', |
|
|
|
component: Layout, |
|
|
|
component: Layout, |
|
|
|
hidden: true, |
|
|
|
hidden: true, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'edit/:tableId(\\d+)', |
|
|
|
path: 'index/:tableId(\\d+)', |
|
|
|
component: (resolve) => require(['@/views/tool/gen/editTable'], resolve), |
|
|
|
component: (resolve) => require(['@/views/tool/gen/editTable'], resolve), |
|
|
|
name: 'GenEdit', |
|
|
|
name: 'GenEdit', |
|
|
|
meta: { title: '修改生成配置' } |
|
|
|
meta: { title: '修改生成配置', activeMenu: '/tool/gen'} |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|