sysom1/sysom_web/config/routes.js

318 lines
6.1 KiB
JavaScript

export default [
{
path: '/user',
layout: false,
routes: [
{
path: '/user',
routes: [
{
name: 'login',
path: '/user/login',
component: './user/Login',
},
],
},
{
component: './404',
},
],
},
{
path: '/welcome',
name: 'welcome',
layout: false,
hideInMenu:true,
component: './Welcome',
},
{
path: '/home',
name: 'home',
component: './home',
},
{
path: '/host',
name: 'host',
routes: [
{
path: '/host',
redirect: '/host/list',
},
{
path: '/host/list',
name: 'list',
component: './host/List',
},
{
path: '/host/cluster',
name: 'cluster',
component: './host/cluster',
},
{
path: '/host/terminal/:ip?',
component: './host/Terminal',
}
],
},
{
path: '/migrate',
name: 'migrate',
routes: [
{
path: '/migrate',
redirect: '/migrate/implement',
},
{
path: '/migrate/assess',
name: 'assess',
component: './migrate/assess',
},
{
path: '/migrate/report/:id?',
// name: 'report',
hideInBreadcrumb: true,
component: './migrate/assessReport',
},
{
path: '/migrate/implement',
name: 'implement',
hideInBreadcrumb: true,
component: './migrate/implement',
},
]
},
{
path: '/monitor',
name: 'monitor',
routes: [
{
path: '/monitor',
redirect: '/monitor/dashboard',
},
{
path: 'dashboard',
name: 'dashboard',
hideInBreadcrumb: true,
component: './Monitor/SystemDashboard',
},
{
path: 'dashboard/:host?',
component: './Monitor/SystemDashboard',
},
{
path: 'migration',
name: 'migration',
hideInBreadcrumb: true,
component: './Monitor/MigrationDashboard',
},
{
path: 'migration/:host?',
component: './Monitor/MigrationDashboard',
},
{
component: './404',
},
],
},
{
path: '/vmcore',
name: 'vmcore',
routes: [
{
path: '/vmcore',
redirect: '/vmcore/list',
},
{
path: '/vmcore/list',
name: 'list',
component: './vmcore/List',
},
{
path: '/vmcore/detail/:id?',
component: './vmcore/Detail',
},
{
path: '/vmcore/match',
name: 'match',
component: './vmcore/Match',
},
{
path: '/vmcore/analyse',
component: './vmcore/Analyse',
},
{
path: '/vmcore/config',
name: 'config',
component: './vmcore/Config',
},
],
},
{
path: '/diagnose',
name: 'diagnose',
routes: [
{
path: '/diagnose',
redirect: '/diagnose/oscheck',
},
{
path: '/diagnose/oscheck',
name: 'oscheck',
component: './diagnose/oscheck',
},
{
path: '/diagnose/cpu',
name: 'cpu',
routes: [
{
path: '/diagnose/cpu',
redirect: '/diagnose/cpu/loadtask',
}
]
},
{
path: '/diagnose/storage',
name: 'storage',
routes: [
{
path: '/diagnose/storage',
redirect: '/diagnose/storage/iolatency',
}
]
},
{
path: '/diagnose/net',
name: 'net',
routes: [
{
path: '/diagnose/net',
redirect: '/diagnose/net/pingtrace',
},
]
},
{
path: '/diagnose/memory',
name: 'memory',
routes: [
{
path: '/diagnose/memory',
redirect: '/diagnose/memory/memgraph',
}
]
},
{
path: '/diagnose/detail/:task_id?',
layout: false,
component: "./diagnose/detail"
}
],
},
{
path: '/security',
name: 'security',
routes: [
{
path: '/security',
redirect: '/security/list',
},
{
path: '/security/list',
name: 'list',
component: './security/List',
},
{
path: '/security/homelist/:id?',
component: './security/Homelist',
},
{
path: '/security/historical',
component: './security/Historical',
},
{
path: '/security/historicalist/:id?',
component: './security/Historicalist',
},
{
path: '/security/viewdetails/:id?/:homename?',
component: './security/Viewdetails',
},
{
path: '/security/setting',
component: './security/Setting',
},
],
},
{
path: '/hotfix',
name: 'hotfix',
routes: [
{
path: '/hotfix/formal_hotfix',
name: 'formal',
component: './hotfix/FormalHotfixList'
},
{
path: '/hotfix',
redirect: '/hotfix/make',
},
{
path: '/hotfix/make',
name: 'make',
component: './hotfix/Make',
},
{
path: '/hotfix/hotfix_log/:id?',
component: './hotfix/HotfixLog'
},
{
path: '/hotfix/verion_config',
name: 'versionconf',
component: './hotfix/VersionConf'
}
]
},
{
path: '/journal',
name: 'journal',
routes: [
{
path: '/journal',
redirect: '/journal/audit',
},
{
path: '/journal/audit',
name: 'audit',
component: './journal/Audit',
},
{
path: '/journal/task',
name: 'task',
component: './journal/Task',
},
{
path: '/journal/alarm',
name: 'alarm',
component: './journal/Alarm',
},
],
},
{
path: '/account',
access: 'canAdmin',
routes: [
{
path: '/account/center',
name: 'list',
component: './account/List',
},
]
},
{
path: '/',
redirect: '/welcome',
},
{
component: './404',
},
];