合并导航栏

This commit is contained in:
fan 2020-05-13 18:59:28 +08:00
parent 39edb68018
commit e72fdcdb78

View File

@ -346,43 +346,43 @@ export const asyncRouter = [
}
]
},
{ // 个人地图
path: '/design/userlist',
redirect: '/design/userlist/home',
component: Layout,
meta: {
roles: [admin]
},
children: [
{
path: '',
redirect: '/design/userlist/home',
component: DesignPlatformUser,
meta: {
i18n: 'router.designUserPage',
icon: 'design'
},
children: [
{
path: 'home',
component: DesignPlatformHome,
meta: {
}
},
{ // 地图 绘制
path: 'map/draw/:mapId/:view',
component: Mapedit,
hidden: true
},
{ // 运行图设计
path: 'runPlan/detail/:mapId',
component: PlanMonitorDetail,
hidden: true
}
]
}
]
},
// { // 个人地图
// path: '/design/userlist',
// redirect: '/design/userlist/home',
// component: Layout,
// meta: {
// roles: [admin]
// },
// children: [
// {
// path: '',
// redirect: '/design/userlist/home',
// component: DesignPlatformUser,
// meta: {
// i18n: 'router.designUserPage',
// icon: 'design'
// },
// children: [
// {
// path: 'home',
// component: DesignPlatformHome,
// meta: {
// }
// },
// { // 地图 绘制
// path: 'map/draw/:mapId/:view',
// component: Mapedit,
// hidden: true
// },
// { // 运行图设计
// path: 'runPlan/detail/:mapId',
// component: PlanMonitorDetail,
// hidden: true
// }
// ]
// }
// ]
// },
{ // 全屏战场图
path: '/display/:mode',
component: Display,
@ -847,15 +847,16 @@ export const asyncRouter = [
]
},
{ // 新个人地图
path: '/design/usermap',
redirect: '/design/usermap/home',
path: '/design',
// redirect: '/design/usermap/home',
component: Layout,
meta: {
i18n: 'router.newDesignUserPage',
roles: [admin, user]
},
children: [
{
path: '',
path: 'usermap',
redirect: '/design/usermap/home',
component: NewDesignPlatformUser,
meta: {
@ -866,6 +867,7 @@ export const asyncRouter = [
{
path: 'home',
component: DesignPlatformHome,
hidden: true,
meta: {
}
}
@ -877,15 +879,48 @@ export const asyncRouter = [
]
},
{ // 新地图绘制
path: 'map/draw/:mapId/:view',
path: 'usermap/map/draw/:mapId/:view',
component: NewMapDraft,
hidden: true
},
{
path:'iscs/design',
redirect: '/iscs/design',
component: IscsDesign,
meta: {
i18n: 'router.iscsDraw',
roles: [admin]
},
children: [
{
path: 'edit/:id/:mode',
component: IscsDraw,
hidden: true
}
]
},
{
path: 'iscs/system',
redirect: '/iscs/system',
component: IscsSystem,
meta: {
i18n: 'router.iscsSystem',
roles: [admin]
},
children: [
{
path: 'config/:mode',
component: IscsConfig,
hidden: true
}
]
}
]
},
{ // iscs系统
path: '/iscs',
component: Layout,
hidden: true,
meta: {
i18n: 'router.iscsSystem',
roles: [admin]