From 6380c3d11b2e07342c064a0070c17d9ca7b19160 Mon Sep 17 00:00:00 2001 From: yuan Date: Mon, 29 Nov 2021 14:12:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E7=BA=BF=E5=A2=9E=E5=8A=A0PS?= =?UTF-8?q?L=E7=9B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fuzhou_01/menus/menuStationStand.vue | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/jmapNew/theme/fuzhou_01/menus/menuStationStand.vue b/src/jmapNew/theme/fuzhou_01/menus/menuStationStand.vue index 7b33fd360..bacecb53c 100644 --- a/src/jmapNew/theme/fuzhou_01/menus/menuStationStand.vue +++ b/src/jmapNew/theme/fuzhou_01/menus/menuStationStand.vue @@ -9,6 +9,7 @@ + @@ -22,6 +23,7 @@ import StandStopTime from './dialog/standStopTime'; import StandDetainTrainAll from './dialog/standDetainTrainAll'; import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'; import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault'; +import Psl from '@/jmapNew/theme/components/menus/dialog/psl'; import { mapGetters } from 'vuex'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import CMD from '@/scripts/cmdPlugin/CommandEnum'; @@ -39,7 +41,8 @@ export default { StandBackStrategy, StandStopTime, StandDetainTrainAll, - SetFault + SetFault, + Psl }, props: { selected: { @@ -198,6 +201,16 @@ export default { if (this.operatemode === OperateMode.FAULT) { this.menu = this.menuForce; } + // 非故障模式 且 角色为车站值班员时 增加PSL盘 + if (this.operatemode !== OperateMode.FAULT && this.$store.state.training.prdType === '01') { + this.menu = [ + ...this.menu, + { + label: 'PSL', + handler: this.openPsl + } + ]; + } // this.menu = MenuContextHandler.covert(this.menu); }, @@ -334,6 +347,10 @@ export default { }, triggerFaultManagement() { this.$store.dispatch('training/setTriggerFaultCount', this.selected); + }, + // 打开PSL面板 + openPsl() { + this.$refs.psl.doShow(this.selected); } } };