|
|
@ -8,10 +8,16 @@ Vue.use(Router) |
|
|
|
|
|
|
|
|
/* Layout */ |
|
|
/* Layout */ |
|
|
import Layout from '../views/layout/Layout' |
|
|
import Layout from '../views/layout/Layout' |
|
|
import routesSys from './routes_sys' |
|
|
|
|
|
|
|
|
import routesWorkflow from './routes_workflow' |
|
|
|
|
|
import routesForm from './routes_form' |
|
|
|
|
|
import routesXm from './routes_xm' |
|
|
|
|
|
import routesDatavXm from './routes_datav_xm' |
|
|
|
|
|
import routesArc from './routes_arc' |
|
|
|
|
|
import routesIm from './routes_im' |
|
|
import routesMyWork from './routes_my_work' |
|
|
import routesMyWork from './routes_my_work' |
|
|
import routesOrder from './routes_order' |
|
|
import routesOrder from './routes_order' |
|
|
export {Layout} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export { Layout } |
|
|
|
|
|
|
|
|
/** note: submenu only apppear when children.length>=1 |
|
|
/** note: submenu only apppear when children.length>=1 |
|
|
* detail see https://panjiachen.github.io/vue-element-admin-site/#/router-and-nav?id=sidebar
|
|
|
* detail see https://panjiachen.github.io/vue-element-admin-site/#/router-and-nav?id=sidebar
|
|
|
@ -35,21 +41,31 @@ export const constantRouterMap = [ |
|
|
{ path: '/login', component: _import('login/index'), hidden: true }, |
|
|
{ path: '/login', component: _import('login/index'), hidden: true }, |
|
|
{ path: '/404', component: _import('errorPage/404'), hidden: true }, |
|
|
{ path: '/404', component: _import('errorPage/404'), hidden: true }, |
|
|
{ path: '/401', component: _import('errorPage/401'), hidden: true }, |
|
|
{ path: '/401', component: _import('errorPage/401'), hidden: true }, |
|
|
{ path: '/changeEmailStepOne', component: _import('mdp/sys/user/ChangeEmailStepOne'), hidden: true }, |
|
|
|
|
|
{ path: '/changeEmailStepTwo', component: _import('mdp/sys/user/ChangeEmailStepTwo'), hidden: true }, |
|
|
|
|
|
{ |
|
|
{ |
|
|
path: '', |
|
|
path: '', |
|
|
component: Layout, |
|
|
component: Layout, |
|
|
redirect: 'dashboard', |
|
|
redirect: 'dashboard', |
|
|
name:"首页", |
|
|
|
|
|
meta:{title:'首页',icon: 'home-page'}, |
|
|
meta:{title:'首页',icon: 'home-page'}, |
|
|
children: [{ |
|
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
{ |
|
|
path: 'dashboard', |
|
|
path: 'dashboard', |
|
|
component: _import('myWork/my/index'), |
|
|
|
|
|
|
|
|
component: _import('xm/XmOverview'), |
|
|
name: '首页', |
|
|
name: '首页', |
|
|
meta: { title: '首页', icon: 'dashboard', noCache: true } |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
meta: { title: '首页', icon: 'home-page', noCache: true } |
|
|
|
|
|
}, |
|
|
|
|
|
// {
|
|
|
|
|
|
// path: 'updateUserInfo',
|
|
|
|
|
|
// component: _import('mdp/sys/user/UpdateUserInfo'),
|
|
|
|
|
|
// name: '账户设置',
|
|
|
|
|
|
// meta: {
|
|
|
|
|
|
// title: '修改个人信息',
|
|
|
|
|
|
// icon: 'component'
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
], |
|
|
|
|
|
hidden: false |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
export default new Router({ |
|
|
export default new Router({ |
|
|
@ -58,10 +74,13 @@ export default new Router({ |
|
|
routes: constantRouterMap |
|
|
routes: constantRouterMap |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let allRoutes=[] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let allRoutes = [] |
|
|
allRoutes=allRoutes.concat(routesMyWork.routes); |
|
|
allRoutes=allRoutes.concat(routesMyWork.routes); |
|
|
allRoutes=allRoutes.concat(routesSys.routes); |
|
|
|
|
|
|
|
|
allRoutes=allRoutes.concat(routesXm.routes); |
|
|
|
|
|
allRoutes=allRoutes.concat(routesDatavXm.routes); |
|
|
|
|
|
allRoutes=allRoutes.concat(routesWorkflow.routes).concat(routesForm.routes) |
|
|
|
|
|
allRoutes=allRoutes.concat(routesArc.routes); |
|
|
|
|
|
allRoutes=allRoutes.concat(routesIm.routes); |
|
|
allRoutes=allRoutes.concat(routesOrder.routes); |
|
|
allRoutes=allRoutes.concat(routesOrder.routes); |
|
|
|
|
|
|
|
|
export const asyncRouterMap = allRoutes |
|
|
export const asyncRouterMap = allRoutes |