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; }