|
@@ -85,181 +85,188 @@ export const constantRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: prefix + '/user',
|
|
|
+ path:prefix,
|
|
|
component: Layout,
|
|
|
- hidden: true,
|
|
|
- redirect: 'noredirect',
|
|
|
children: [
|
|
|
{
|
|
|
- path: 'profile',
|
|
|
- component: () => import('@/views/system/user/profile/index'),
|
|
|
- name: 'Profile',
|
|
|
- meta: {title: '个人中心', icon: 'user'}
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/link/pp-link',
|
|
|
- component: () => import('@/views/obj/pp/link')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/hl/bm',
|
|
|
- component: () => import('@/views/hl/bm/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/hl/check',
|
|
|
- component: () => import('@/views/hl/check/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/alarm/record',
|
|
|
- component: () => import('@/views/alarm/record/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/alarm/bizType',
|
|
|
- component: () => import('@/views/alarm/record/bizType')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/alarm/bizSort',
|
|
|
- component: () => import('@/views/alarm/record/bizSort')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/alarm/bizAccess',
|
|
|
- component: () => import('@/views/alarm/record/bizAccess')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/risk/heterogeneous',
|
|
|
- component: () => import('@/views/risk/r2/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/risk/frequency',
|
|
|
- component: () => import('@/views/risk/r3/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/risk/numerical',
|
|
|
- component: () => import('@/views/risk/r4/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/risk/bizHost',
|
|
|
- component: () => import('@/views/risk/r5/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/risk/bizNetwork',
|
|
|
- component: () => import('@/views/risk/r6/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/risk/bizServer',
|
|
|
- component: () => import('@/views/risk/r7/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/ms/type',
|
|
|
- component: () => import('@/views/ms/type/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/ms/def',
|
|
|
- component: () => import('@/views/ms/def/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/ms/mstpl',
|
|
|
- component: () => import('@/views/ms/mstpl/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/obj/obj',
|
|
|
- component: () => import('@/views/obj/obj/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/sendMsg/pushConfig',
|
|
|
- component: () => import('@/views/push/pushConfig/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/sendMsg/pushRecordSms',
|
|
|
- component: () => import('@/views/push/pushRecord/sms')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/sendMsg/pushRecordMail',
|
|
|
- component: () => import('@/views/push/pushRecord/mail')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/monitor/job',
|
|
|
- component: () => import('@/views/monitor/job/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/system/config',
|
|
|
- component: () => import('@/views/system/config/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/system/dict',
|
|
|
- component: () => import('@/views/system/dict/index')
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/system/dict-data',
|
|
|
- component: Layout,
|
|
|
- hidden: true,
|
|
|
- permissions: ['system:dict:list'],
|
|
|
- children: [
|
|
|
+ path: prefix + '/user',
|
|
|
+ component: Layout,
|
|
|
+ hidden: true,
|
|
|
+ redirect: 'noredirect',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'profile',
|
|
|
+ component: () => import('@/views/system/user/profile/index'),
|
|
|
+ name: 'Profile',
|
|
|
+ meta: {title: '个人中心', icon: 'user'}
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
{
|
|
|
- path: 'index/:dictId(\\d+)',
|
|
|
- component: () => import('@/views/system/dict/data'),
|
|
|
- name: 'Data',
|
|
|
- meta: {title: '字典数据', activeMenu: '/system/dict'}
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/system/user-auth',
|
|
|
- component: Layout,
|
|
|
- hidden: true,
|
|
|
- permissions: ['system:user:edit'],
|
|
|
- children: [
|
|
|
+ path: prefix + '/link/pp-link',
|
|
|
+ component: () => import('@/views/obj/pp/link')
|
|
|
+ },
|
|
|
{
|
|
|
- path: 'role/:userId(\\d+)',
|
|
|
- component: () => import('@/views/system/user/authRole'),
|
|
|
- name: 'AuthRole',
|
|
|
- meta: {title: '分配角色', activeMenu: '/system/user'}
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/system/role-auth',
|
|
|
- component: Layout,
|
|
|
- hidden: true,
|
|
|
- permissions: ['system:role:edit'],
|
|
|
- children: [
|
|
|
+ path: prefix + '/hl/bm',
|
|
|
+ component: () => import('@/views/hl/bm/index')
|
|
|
+ },
|
|
|
{
|
|
|
- path: 'user/:roleId(\\d+)',
|
|
|
- component: () => import('@/views/system/role/authUser'),
|
|
|
- name: 'AuthUser',
|
|
|
- meta: {title: '分配用户', activeMenu: '/system/role'}
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/monitor/job-log',
|
|
|
- component: Layout,
|
|
|
- hidden: true,
|
|
|
- permissions: ['monitor:job:list'],
|
|
|
- children: [
|
|
|
+ path: prefix + '/hl/check',
|
|
|
+ component: () => import('@/views/hl/check/index')
|
|
|
+ },
|
|
|
{
|
|
|
- path: 'index/:jobId(\\d+)',
|
|
|
- component: () => import('@/views/monitor/job/log'),
|
|
|
- name: 'JobLog',
|
|
|
- meta: {title: '调度日志', activeMenu: '/monitor/job'}
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: prefix + '/tool/gen-edit',
|
|
|
- component: Layout,
|
|
|
- hidden: true,
|
|
|
- permissions: ['tool:gen:edit'],
|
|
|
- children: [
|
|
|
+ path: prefix + '/alarm/record',
|
|
|
+ component: () => import('@/views/alarm/record/index')
|
|
|
+ },
|
|
|
{
|
|
|
- path: 'index/:tableId(\\d+)',
|
|
|
- component: () => import('@/views/tool/gen/editTable'),
|
|
|
- name: 'GenEdit',
|
|
|
- meta: {title: '修改生成配置', activeMenu: '/tool/gen'}
|
|
|
+ path: prefix + '/alarm/bizType',
|
|
|
+ component: () => import('@/views/alarm/record/bizType')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/alarm/bizSort',
|
|
|
+ component: () => import('@/views/alarm/record/bizSort')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/alarm/bizAccess',
|
|
|
+ component: () => import('@/views/alarm/record/bizAccess')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/risk/heterogeneous',
|
|
|
+ component: () => import('@/views/risk/r2/index')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/risk/frequency',
|
|
|
+ component: () => import('@/views/risk/r3/index')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/risk/numerical',
|
|
|
+ component: () => import('@/views/risk/r4/index')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/risk/bizHost',
|
|
|
+ component: () => import('@/views/risk/r5/index')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/risk/bizNetwork',
|
|
|
+ component: () => import('@/views/risk/r6/index')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/risk/bizServer',
|
|
|
+ component: () => import('@/views/risk/r7/index')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/ms/type',
|
|
|
+ component: () => import('@/views/ms/type/index')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/ms/def',
|
|
|
+ component: () => import('@/views/ms/def/index')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/ms/mstpl',
|
|
|
+ component: () => import('@/views/ms/mstpl/index')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/obj/obj',
|
|
|
+ component: () => import('@/views/obj/obj/index')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/sendMsg/pushConfig',
|
|
|
+ component: () => import('@/views/push/pushConfig/index')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/sendMsg/pushRecordSms',
|
|
|
+ component: () => import('@/views/push/pushRecord/sms')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/sendMsg/pushRecordMail',
|
|
|
+ component: () => import('@/views/push/pushRecord/mail')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/monitor/job',
|
|
|
+ component: () => import('@/views/monitor/job/index')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/system/config',
|
|
|
+ component: () => import('@/views/system/config/index')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/system/dict',
|
|
|
+ component: () => import('@/views/system/dict/index')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/system/dict-data',
|
|
|
+ component: Layout,
|
|
|
+ hidden: true,
|
|
|
+ permissions: ['system:dict:list'],
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'index/:dictId(\\d+)',
|
|
|
+ component: () => import('@/views/system/dict/data'),
|
|
|
+ name: 'Data',
|
|
|
+ meta: {title: '字典数据', activeMenu: '/system/dict'}
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/system/user-auth',
|
|
|
+ component: Layout,
|
|
|
+ hidden: true,
|
|
|
+ permissions: ['system:user:edit'],
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'role/:userId(\\d+)',
|
|
|
+ component: () => import('@/views/system/user/authRole'),
|
|
|
+ name: 'AuthRole',
|
|
|
+ meta: {title: '分配角色', activeMenu: '/system/user'}
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/system/role-auth',
|
|
|
+ component: Layout,
|
|
|
+ hidden: true,
|
|
|
+ permissions: ['system:role:edit'],
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'user/:roleId(\\d+)',
|
|
|
+ component: () => import('@/views/system/role/authUser'),
|
|
|
+ name: 'AuthUser',
|
|
|
+ meta: {title: '分配用户', activeMenu: '/system/role'}
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/monitor/job-log',
|
|
|
+ component: Layout,
|
|
|
+ hidden: true,
|
|
|
+ permissions: ['monitor:job:list'],
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'index/:jobId(\\d+)',
|
|
|
+ component: () => import('@/views/monitor/job/log'),
|
|
|
+ name: 'JobLog',
|
|
|
+ meta: {title: '调度日志', activeMenu: '/monitor/job'}
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: prefix + '/tool/gen-edit',
|
|
|
+ component: Layout,
|
|
|
+ hidden: true,
|
|
|
+ permissions: ['tool:gen:edit'],
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'index/:tableId(\\d+)',
|
|
|
+ component: () => import('@/views/tool/gen/editTable'),
|
|
|
+ name: 'GenEdit',
|
|
|
+ meta: {title: '修改生成配置', activeMenu: '/tool/gen'}
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
]
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
];
|
|
|
|
|
|
// 动态路由,基于用户权限动态去加载
|