diff --git a/src/jmapNew/map.js b/src/jmapNew/map.js index 48d4cd0b1..8d3696bdc 100644 --- a/src/jmapNew/map.js +++ b/src/jmapNew/map.js @@ -471,6 +471,63 @@ class Jlmap { } } store.commit('map/mapStationStateUpdate'); + } else if (elem.deviceType === 'STATION_DIRECTION') { + debugger; + const mapStationDirectionData = store.state.map.mapStationDirectionData; + // 大铁项目 车站方向 + const directionData = mapStationDirectionData[code]; + // store.state.map.map.indicatorLightList; + // 改方按钮状态 + const signalButtonList = store.state.map.map.signalButtonList; + const signalButton = signalButtonList.find(elem=>{ + return elem.labelEnum === directionData.labelEnum && elem.stationCode == directionData.stationCode; + }); + if (signalButton) { + const buttonModel = this.mapDevice[signalButton.code]; + buttonModel.pressDown = elem.changeDirectionStatus; + this.$painter.update(buttonModel); + } + + // 接车 发车 区间占用 辅助状态 + const indicatorLightList = store.state.map.map.indicatorLightList; + const indicatorList = indicatorLightList.filter(elem=>{ + return elem.labelEnum === directionData.labelEnum && elem.stationCode == directionData.stationCode; + }); + indicatorList.forEach(each=>{ + const model = this.mapDevice[each.code]; + switch (each._type) { + case 'PickArrow': { + // 接车灯状态 + model.aspect = elem.receiveAspect; + this.$painter.update(model); + break; + } + case 'DepartArrow': { + // 发车灯状态 + model.aspect = elem.deliverAspect; + this.$painter.update(model); + break; + } + case 'SectionOccupied': { + // 区间占用 + model.aspect = elem.sectionAspect; + this.$painter.update(model); + break; + } + case 'AssistStatus': { + // 辅助状态 + model.aspect = elem.assistAspect; + this.$painter.update(model); + break; + } + default: + break; + } + }); + // { name: '总辅助', value: 'TotalAssist' }, + // { name: '发车辅助', value: 'DepartAssist' }, + // { name: '接车辅助', value: 'PickAssist' }, + } else { if (elem.deviceType === 'TRAIN') { this.isUpdateShowTrainList = true;