diff --git a/src/jmapNew/constant/deviceState.js b/src/jmapNew/constant/deviceState.js index ee26224bf..bbc43859e 100644 --- a/src/jmapNew/constant/deviceState.js +++ b/src/jmapNew/constant/deviceState.js @@ -70,7 +70,8 @@ deviceState[deviceType.Signal] = { deviceState[deviceType.Station] = { /** 是否故障*/ fault: false, /** 非故障*/ - controlMode: 'Center' // Center 中控 Local 站控 Emergency 紧急站控 Interlock 联锁控 + controlMode: 'Center' + // controlMode: 'Local' // Center 中控 Local 站控 Emergency 紧急站控 Interlock 联锁控 }; deviceState[deviceType.Psd] = { diff --git a/src/jmapNew/theme/chengdu_03/menus/menuSwitch.vue b/src/jmapNew/theme/chengdu_03/menus/menuSwitch.vue index 64a22f16a..e4c842f0d 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuSwitch.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuSwitch.vue @@ -47,12 +47,12 @@ export default { { label: '单操到定位', handler: this.locate, - cmdType: CMD.Switch.CMD_SWITCH_TURN + cmdType: CMD.Switch.CMD_SWITCH_NORMAL_POSITION }, { label: '单操到反位', handler: this.reverse, - cmdType: CMD.Switch.CMD_SWITCH_TURN + cmdType: CMD.Switch.CMD_SWITCH_REVERSE_POSITION }, { label: '道岔单锁', diff --git a/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue b/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue index e1426223e..55c938c9f 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue @@ -55,12 +55,12 @@ export default { { label: '单操到定位', handler: this.locate, - cmdType: CMD.Switch.CMD_SWITCH_TURN + cmdType: CMD.Switch.CMD_SWITCH_NORMAL_POSITION }, { label: '单操到反位', handler: this.reverse, - cmdType: CMD.Switch.CMD_SWITCH_TURN + cmdType: CMD.Switch.CMD_SWITCH_REVERSE_POSITION }, { label: '道岔单锁', @@ -147,7 +147,6 @@ export default { }, initMenu() { // 编辑模式菜单列表 - debugger; this.menu = MenuContextHandler.covert(this.menuNormal); // 故障模式菜单列表 if (this.operatemode === OperateMode.FAULT) { diff --git a/src/scripts/cmdPlugin/CommandEnum.js b/src/scripts/cmdPlugin/CommandEnum.js index 519df63dd..d5bc064bf 100644 --- a/src/scripts/cmdPlugin/CommandEnum.js +++ b/src/scripts/cmdPlugin/CommandEnum.js @@ -29,7 +29,11 @@ export default { /** 强扳 */ CMD_SWITCH_FORCE_TURN: {value:'Switch_Force_Turn', label: '强扳'}, /** 确认计轴有效 */ - CMD_SWITCH_COMFIRMATION_AXLE:{value:'Switch_Comfirmation_Axle', label: '确认计轴有效'} + CMD_SWITCH_COMFIRMATION_AXLE:{value:'Switch_Comfirmation_Axle', label: '确认计轴有效'}, + /** 定位(定操) */ + CMD_SWITCH_NORMAL_POSITION:{value:'Switch_Normal_Position',label:'单操到定位'}, + /** 反位(反操) */ + CMD_SWITCH_REVERSE_POSITION:{value:'Switch_Reverse_Position',label:'单操到反位'}, }, // 控制模式操作