From 3a8e48b06f54743458a33ef8af2c7f85bcff59a1 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Fri, 22 Sep 2023 09:06:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=85=E9=9A=9C=E6=BC=94=E7=BB=83=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E9=80=89=E9=81=93=E5=B2=94=E7=89=A9=E7=90=86=E5=8C=BA?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/alarm/setAlarmMock.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/alarm/setAlarmMock.vue b/src/components/alarm/setAlarmMock.vue index b79a76e..ec980e6 100644 --- a/src/components/alarm/setAlarmMock.vue +++ b/src/components/alarm/setAlarmMock.vue @@ -78,6 +78,8 @@ import { QForm, useQuasar } from 'quasar'; import { ApiError } from 'src/boot/axios'; import { mockAlertSet } from 'src/api/AlertMock'; import { saveAlertTypeData } from './alarmInfoEnum'; +import { Section, SectionType } from 'src/graphics/section/Section'; +import { LogicSection } from 'src/graphics/logicSection/LogicSection'; const lineStore = useLineStore(); const setAlartTextData = ref<{ @@ -133,8 +135,15 @@ watch( select = true; } if ( - g.type !== Station.Type && - mapAlertType.get(setAlartTextData.value.alertType)?.includes(g.type) + (g.type !== Station.Type && + mapAlertType + .get(setAlartTextData.value.alertType) + ?.includes(g.type)) || + (g.type == Section.Type && + (g as Section).datas.sectionType === SectionType.TurnoutPhysical && + mapAlertType + .get(setAlartTextData.value.alertType) + ?.includes(LogicSection.Type)) ) { select = true; }