北京一号线现地操作代码调整

This commit is contained in:
joylink_cuiweidong 2020-06-28 10:38:34 +08:00
parent 6b78dc89f4
commit dea4481783
2 changed files with 9 additions and 5 deletions

View File

@ -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);

View File

@ -1,5 +1,5 @@
<template>
<div v-if="isShowBtn" menuButtonclass="menu menuButton" style="height: 45px;" :style="{left: point.x+'px', bottom: point.y+'px' }">
<div v-if="isShowBtn" id="menuButtons_box" class="menu menuButton" style="height:45px;" :style="{left: point.x+'px', bottom: point.y+'px' }">
<button
:id="Signal.arrangementRoute.button.domId"
:style="{display: 'block', float: 'left', width: width+'px', backgroundColor:buttonUpColor}"