diff --git a/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue b/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue index f88e835c4..43459af07 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuStationStand.vue @@ -59,7 +59,7 @@ export default { return { menu: [], menuNormal: { - local: [ + Local: [ { label: '扣车', handler: this.setDetainTrain, @@ -107,7 +107,7 @@ export default { cmdType:CMD.Stand.CMD_STAND_SET_RUN_TIME } ], - central: [ + Center: [ { label: '扣车', handler: this.setDetainTrain, diff --git a/src/scripts/cmdPlugin/Handler.js b/src/scripts/cmdPlugin/Handler.js index 3e73fce60..034aa67bb 100644 --- a/src/scripts/cmdPlugin/Handler.js +++ b/src/scripts/cmdPlugin/Handler.js @@ -120,6 +120,7 @@ class Handler { notify(lineCode) { getCmdList(lineCode).then(resp => { + console.log(resp, '-----111'); CommandHandler.load(resp.data || []); }).catch(err => { CommandHandler.load([]); diff --git a/src/scripts/cmdPlugin/MenuContextHandler.js b/src/scripts/cmdPlugin/MenuContextHandler.js index ef04b24e9..85117d000 100644 --- a/src/scripts/cmdPlugin/MenuContextHandler.js +++ b/src/scripts/cmdPlugin/MenuContextHandler.js @@ -90,7 +90,8 @@ class MenuContextHandler { if (control) { if ( this.getPrdType() != '') { const type = State2SimulationMap[this.getPrdType()]; - const status = State2ControlMap[control.status]; // 缺少车站控制模式字段 + // const status = State2ControlMap[control.status]; // 缺少车站控制模式字段 + const status = State2ControlMap['01']; // 缺少车站控制模式字段 menu = [...menuList[type]]; if (menu.constructor === Array) { menu.forEach(elem => { @@ -98,6 +99,7 @@ class MenuContextHandler { elem.show = true; return; } + debugger; const data = CommandHandler.getDefinition(elem.cmdType); if (data) { // 判断指令是否显示