diff --git a/src/jmapNew/shape/Signal/ELowButton.js b/src/jmapNew/shape/Signal/ELowButton.js index c1bc96b14..8a368f433 100644 --- a/src/jmapNew/shape/Signal/ELowButton.js +++ b/src/jmapNew/shape/Signal/ELowButton.js @@ -28,7 +28,7 @@ class ELowButton extends Group { }); this.add(this.button); - // this.hide(); + this.hide(); } // 隐藏 diff --git a/src/jmapNew/shape/Signal/index.js b/src/jmapNew/shape/Signal/index.js index e2e374cf8..c907eef41 100644 --- a/src/jmapNew/shape/Signal/index.js +++ b/src/jmapNew/shape/Signal/index.js @@ -521,6 +521,11 @@ class Signal extends Group { } else if (!model.isRouteActive && isShowThePrdType(model.prdType, '03') && this.style.Signal.lowButton.display) { this.setLowButtonRecover(); } + + /** 信号机进路按钮显示 */ + if (model.isRouteSignal) { + this.setLowButtonShow(); + } /** 信号机封锁 */ model.blockade && this.block(); /** 设置点灯类型*/ diff --git a/src/jmapNew/theme/beijing_01/menus/index.vue b/src/jmapNew/theme/beijing_01/menus/index.vue index 60e92cc34..8a313e111 100644 --- a/src/jmapNew/theme/beijing_01/menus/index.vue +++ b/src/jmapNew/theme/beijing_01/menus/index.vue @@ -83,6 +83,7 @@ export default { mounted() { this.$nextTick(() => { this.$store.dispatch('config/updateMenuBar'); + this.$refs['menuSignal'].setRouteSignal(); }); } }; diff --git a/src/jmapNew/theme/beijing_01/menus/menuSignal.vue b/src/jmapNew/theme/beijing_01/menus/menuSignal.vue index 175799498..2f4090e97 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuSignal.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuSignal.vue @@ -204,6 +204,22 @@ export default { this.$refs.popMenu.close(); } }, + setRouteSignal() { + if (this.$store.state.training.prdType == '01') { + let signalList = []; + this.routeList.forEach(route=>{ + signalList.push(route.startSignalCode); + signalList.push(route.endSignalCode); + }); + signalList = Array.from(new Set(signalList)); + signalList.forEach(signal=>{ + const signalDevice = this.$store.getters['map/getDeviceByCode'](signal); + const signalModel = Object.assign({_type: 'Signal'}, signalDevice); + signalModel.isRouteSignal = true; + this.$store.dispatch('map/updateMapDevices', signalModel); + }); + } + }, operationHandler(buttonOperation, selectType) { switch (buttonOperation) { case OperationEvent.Signal.arrangementRoute.button.operation: {