diff --git a/src/jmapNew/shape/Section/index.js b/src/jmapNew/shape/Section/index.js index 52ec4cf6e..3554e6522 100644 --- a/src/jmapNew/shape/Section/index.js +++ b/src/jmapNew/shape/Section/index.js @@ -349,8 +349,8 @@ export default class Section extends Group { ]); } } else { - if (sectionB && sectionB.instance) { sectionB.instance.line.stopAnimation(true); } - if (sectionC && sectionC.instance) { sectionC.instance.line.stopAnimation(true); } + if (sectionB && sectionB.instance) { sectionB.instance.line.stopAnimation(true); sectionB.delayUnlock && sectionB.instance.delayUnlock(); } + if (sectionC && sectionC.instance) { sectionC.instance.line.stopAnimation(true); sectionC.delayUnlock && sectionB.instance.delayUnlock(); } } } } diff --git a/src/jmapNew/theme/nanjing_02/menus/dialog/trainControl.vue b/src/jmapNew/theme/nanjing_02/menus/dialog/trainControl.vue index 11ee4744d..78b4ed949 100644 --- a/src/jmapNew/theme/nanjing_02/menus/dialog/trainControl.vue +++ b/src/jmapNew/theme/nanjing_02/menus/dialog/trainControl.vue @@ -154,12 +154,12 @@ export default { watch:{ '$store.state.menuOperation.selectedCount':function(em) { const device = this.$store.state.menuOperation.selected; - if (device && device.code && device.deviceType === 'TRAIN') { - this.tempTableData = [device]; - this.sectionCode = device.sectionModel.name; - this.tripNum = device.destinationCode + device.serviceNumber + (device.tripNumber.substring(1)); - this.groupNum = device.groupNumber; - } + // if (device && device.code && device.deviceType === 'TRAIN') { + // this.tempTableData = [device]; + // this.sectionCode = device.sectionModel.name; + // this.tripNum = device.destinationCode + device.serviceNumber + (device.tripNumber.substring(1)); + // this.groupNum = device.groupNumber; + // } } }, mounted() { diff --git a/src/jmapNew/theme/nanjing_02/menus/menuButton.vue b/src/jmapNew/theme/nanjing_02/menus/menuButton.vue index 9e76cdd04..05848da97 100644 --- a/src/jmapNew/theme/nanjing_02/menus/menuButton.vue +++ b/src/jmapNew/theme/nanjing_02/menus/menuButton.vue @@ -847,14 +847,14 @@ export default { handleTrainParam() { if (this.selectedObj.type === '01') { this.formModelSectionName = this.selectedObj.name; - this.$store.state.map.activeTrainList.forEach(trainCode => { - const trainModel = this.$store.getters['map/getDeviceByCode'](trainCode); - if (trainModel && trainModel.physicalCode === this.selectedObj.code) { - this.formModelTripNum = trainModel.serviceNumber + trainModel.destinationCode + (trainModel.tripNumber.substring(1)); - this.trainModel = trainModel; - this.formModelNewTrip = ''; - } - }); + // this.$store.state.map.activeTrainList.forEach(trainCode => { + // const trainModel = this.$store.getters['map/getDeviceByCode'](trainCode); + // if (trainModel && trainModel.physicalCode === this.selectedObj.code) { + // this.formModelTripNum = trainModel.serviceNumber + trainModel.destinationCode + (trainModel.tripNumber.substring(1)); + // this.trainModel = trainModel; + // this.formModelNewTrip = ''; + // } + // }); } }, pushTempData(list) { @@ -1008,7 +1008,7 @@ export default { { name: '转换道岔', cmdType: CMD.Switch.CMD_SWITCH_TURN, operate: OperationEvent.Switch.locate.menuButton, disabledCb: (selectedObj) => !this.modeMatch }, { name: '强行转岔', cmdType: CMD.Switch.CMD_SWITCH_FORCE_TURN, operate: OperationEvent.Switch.locate.menuButton, securityCommand: true, disabledCb: (selectedObj) => !this.modeMatch }, { name: '强解道岔', cmdType: CMD.Switch.CMD_SWITCH_FAULT_UNLOCK, operate: OperationEvent.Section.fault.menuButton, securityCommand: true, disabledCb: (selectedObj) => !this.modeMatch }, - { name: '挤岔恢复', cmdType: '', operate: OperationEvent.Section.fault.menuButton, securityCommand: true, disabledCb: (selectedObj) => !this.modeMatch }, + { name: '挤岔恢复', cmdType: CMD.Switch.CMD_SWITCH_SQUEEZE_RECOVERY, operate: OperationEvent.Section.fault.menuButton, securityCommand: true, disabledCb: (selectedObj) => !this.modeMatch || selectedObj.fault !== 'SQUEEZE' }, { name: '单独锁定', cmdType: CMD.Switch.CMD_SWITCH_SINGLE_LOCK, operate: OperationEvent.Switch.lock.menuButton, disabledCb: (selectedObj) => !this.modeMatch }, { name: '取消锁定', cmdType: CMD.Switch.CMD_SWITCH_SINGLE_UNLOCK, operate: OperationEvent.Switch.unlock.menuButton, securityCommand: true, disabledCb: (selectedObj) => !this.modeMatch }, { name: '预复位', cmdType: CMD.Switch.CMD_SWITCH_AXLE_PRE_RESET, operate: OperationEvent.Switch.axlePreReset.menuButton, securityCommand: true, disabledCb: (selectedObj) => !this.modeMatch }, diff --git a/src/scripts/cmdPlugin/CommandEnum.js b/src/scripts/cmdPlugin/CommandEnum.js index 3628c76db..eb9f383ec 100644 --- a/src/scripts/cmdPlugin/CommandEnum.js +++ b/src/scripts/cmdPlugin/CommandEnum.js @@ -37,7 +37,9 @@ export default { /** 道岔区段解封 */ CMD_SWITCH_SECTION_UNBLOCK: {value: 'Switch_Section_Unblock', label: '道岔区段解封'}, /** 道岔钩锁 **/ - CMD_SWITCH_HOOK_LOCK:{value:'Switch_Hook_Lock', label:'道岔钩锁'} + CMD_SWITCH_HOOK_LOCK:{value:'Switch_Hook_Lock', label:'道岔钩锁'}, + /** 挤岔恢复 */ + CMD_SWITCH_SQUEEZE_RECOVERY: {value: 'Switch_Squeeze_Recovery', label: '挤岔恢复'} }, // 控制模式操作