|
|
|
@ -14,118 +14,8 @@ export const asyncRouterMap = [ |
|
|
|
|
name: 'index', |
|
|
|
|
component: BasicLayout, |
|
|
|
|
meta: { title: 'menu.home' }, |
|
|
|
|
redirect: '/dashboard/workplace', |
|
|
|
|
redirect: '/authorizer', |
|
|
|
|
children: [ |
|
|
|
|
// dashboard
|
|
|
|
|
{ |
|
|
|
|
path: '/dashboard', |
|
|
|
|
name: 'dashboard', |
|
|
|
|
redirect: '/dashboard/workplace', |
|
|
|
|
component: RouteView, |
|
|
|
|
meta: { title: 'menu.dashboard', keepAlive: true, icon: bxAnaalyse }, |
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
path: '/dashboard/analysis/:pageNo([1-9]\\d*)?', |
|
|
|
|
name: 'Analysis', |
|
|
|
|
component: () => import('@/views/dashboard/Analysis'), |
|
|
|
|
meta: { title: 'menu.dashboard.analysis', keepAlive: false } |
|
|
|
|
}, |
|
|
|
|
// 外部链接
|
|
|
|
|
{ |
|
|
|
|
path: 'https://www.baidu.com/', |
|
|
|
|
name: 'Monitor', |
|
|
|
|
meta: { title: 'menu.dashboard.monitor', target: '_blank', permission: ['customer'] } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/dashboard/workplace', |
|
|
|
|
name: 'Workplace', |
|
|
|
|
component: () => import('@/views/dashboard/Workplace'), |
|
|
|
|
meta: { title: 'menu.dashboard.workplace', keepAlive: true } |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
// forms
|
|
|
|
|
{ |
|
|
|
|
path: '/form', |
|
|
|
|
redirect: '/form/base-form', |
|
|
|
|
component: RouteView, |
|
|
|
|
meta: { title: 'menu.form', icon: 'form' }, |
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
path: '/form/base-form', |
|
|
|
|
name: 'BaseForm', |
|
|
|
|
component: () => import('@/views/form/basicForm'), |
|
|
|
|
meta: { title: 'menu.form.basic-form', keepAlive: true } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/form/step-form', |
|
|
|
|
name: 'StepForm', |
|
|
|
|
component: () => import('@/views/form/stepForm/StepForm'), |
|
|
|
|
meta: { title: 'menu.form.step-form', keepAlive: true } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/form/advanced-form', |
|
|
|
|
name: 'AdvanceForm', |
|
|
|
|
component: () => import('@/views/form/advancedForm/AdvancedForm'), |
|
|
|
|
meta: { title: 'menu.form.advanced-form', keepAlive: true } |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/list', |
|
|
|
|
name: 'list', |
|
|
|
|
component: RouteView, |
|
|
|
|
redirect: '/list/table-list', |
|
|
|
|
meta: {title: 'menu.list', icon: 'table'}, |
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
path: '/list/table-list/:pageNo([1-9]\\d*)?', |
|
|
|
|
name: 'TableListWrapper', |
|
|
|
|
hideChildrenInMenu: true, // 强制显示 MenuItem 而不是 SubMenu
|
|
|
|
|
component: () => import('@/views/list/TableList'), |
|
|
|
|
meta: {title: 'menu.list.table-list', keepAlive: true} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/list/basic-list', |
|
|
|
|
name: 'BasicList', |
|
|
|
|
component: () => import('@/views/list/BasicList'), |
|
|
|
|
meta: {title: 'menu.list.basic-list', keepAlive: true} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/list/card', |
|
|
|
|
name: 'CardList', |
|
|
|
|
component: () => import('@/views/list/CardList'), |
|
|
|
|
meta: {title: 'menu.list.card-list', keepAlive: true} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/list/search', |
|
|
|
|
name: 'SearchList', |
|
|
|
|
component: () => import('@/views/list/search/SearchLayout'), |
|
|
|
|
redirect: '/list/search/article', |
|
|
|
|
meta: {title: 'menu.list.search-list', keepAlive: true}, |
|
|
|
|
children: [ |
|
|
|
|
{ |
|
|
|
|
path: '/list/search/article', |
|
|
|
|
name: 'SearchArticles', |
|
|
|
|
component: () => import('../views/list/search/Article'), |
|
|
|
|
meta: {title: 'menu.list.search-list.articles'} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/list/search/project', |
|
|
|
|
name: 'SearchProjects', |
|
|
|
|
component: () => import('../views/list/search/Projects'), |
|
|
|
|
meta: {title: 'menu.list.search-list.projects'} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
path: '/list/search/application', |
|
|
|
|
name: 'SearchApplications', |
|
|
|
|
component: () => import('../views/list/search/Applications'), |
|
|
|
|
meta: {title: 'menu.list.search-list.applications'} |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
// authorizer
|
|
|
|
|
{ |
|
|
|
|
name: 'authorizer', |
|
|
|
|