diff --git a/src/jmapNew/theme/beijing_01/menus/menuBar.vue b/src/jmapNew/theme/beijing_01/menus/menuBar.vue index bcbd910fa..e48eae102 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuBar.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuBar.vue @@ -110,6 +110,8 @@ import ManageUser from './menuDialog/manageUser'; import HelpAbout from './menuDialog/helpAbout'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import { EventBus } from '@/scripts/event-bus'; +import { State2SimulationMap } from '@/scripts/cmdPlugin/Config'; +import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'; export default { name: 'MenuBar', @@ -141,7 +143,7 @@ export default { valid: true, menu: [], menuNormal: { - local: [ + Local: [ { title: '系统', operate: OperationEvent.Command.mBar.system, @@ -386,7 +388,7 @@ export default { ] } ], - central: [ + Center: [ { title: '系统', operate: OperationEvent.Command.mBar.system, @@ -699,8 +701,10 @@ export default { return list; }, initMenu(menu) { - if (this.menu[2]) { - this.menu[2].children = this.initStationList(); + const type = State2SimulationMap[this.$store.state.training.prdType]; + this.menu = MenuContextHandler.menuBarConvert(this.menuNormal[type], this.$store.state.training.operatemode); + if (this.menu[3]) { + this.menu[3].children = this.initStationList(); } this.clickEvent(); this.closeMenu(true); diff --git a/src/jmapNew/theme/beijing_01/menus/menuButton.vue b/src/jmapNew/theme/beijing_01/menus/menuButton.vue index a03bfa71c..d8c2e523d 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuButton.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuButton.vue @@ -1,5 +1,5 @@