合并导航栏

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