北京一号线现地操作代码调整
This commit is contained in:
parent
6b78dc89f4
commit
dea4481783
@ -110,6 +110,8 @@ import ManageUser from './menuDialog/manageUser';
|
|||||||
import HelpAbout from './menuDialog/helpAbout';
|
import HelpAbout from './menuDialog/helpAbout';
|
||||||
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
|
||||||
import { EventBus } from '@/scripts/event-bus';
|
import { EventBus } from '@/scripts/event-bus';
|
||||||
|
import { State2SimulationMap } from '@/scripts/cmdPlugin/Config';
|
||||||
|
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'MenuBar',
|
name: 'MenuBar',
|
||||||
@ -141,7 +143,7 @@ export default {
|
|||||||
valid: true,
|
valid: true,
|
||||||
menu: [],
|
menu: [],
|
||||||
menuNormal: {
|
menuNormal: {
|
||||||
local: [
|
Local: [
|
||||||
{
|
{
|
||||||
title: '系统',
|
title: '系统',
|
||||||
operate: OperationEvent.Command.mBar.system,
|
operate: OperationEvent.Command.mBar.system,
|
||||||
@ -386,7 +388,7 @@ export default {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
central: [
|
Center: [
|
||||||
{
|
{
|
||||||
title: '系统',
|
title: '系统',
|
||||||
operate: OperationEvent.Command.mBar.system,
|
operate: OperationEvent.Command.mBar.system,
|
||||||
@ -699,8 +701,10 @@ export default {
|
|||||||
return list;
|
return list;
|
||||||
},
|
},
|
||||||
initMenu(menu) {
|
initMenu(menu) {
|
||||||
if (this.menu[2]) {
|
const type = State2SimulationMap[this.$store.state.training.prdType];
|
||||||
this.menu[2].children = this.initStationList();
|
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.clickEvent();
|
||||||
this.closeMenu(true);
|
this.closeMenu(true);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<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
|
<button
|
||||||
:id="Signal.arrangementRoute.button.domId"
|
:id="Signal.arrangementRoute.button.domId"
|
||||||
:style="{display: 'block', float: 'left', width: width+'px', backgroundColor:buttonUpColor}"
|
:style="{display: 'block', float: 'left', width: width+'px', backgroundColor:buttonUpColor}"
|
||||||
|
Loading…
Reference in New Issue
Block a user