故障演练可以选道岔物理区段

This commit is contained in:
joylink_zhaoerwei 2023-09-22 09:06:19 +08:00
parent b988cf146a
commit 3a8e48b06f

View File

@ -78,6 +78,8 @@ import { QForm, useQuasar } from 'quasar';
import { ApiError } from 'src/boot/axios'; import { ApiError } from 'src/boot/axios';
import { mockAlertSet } from 'src/api/AlertMock'; import { mockAlertSet } from 'src/api/AlertMock';
import { saveAlertTypeData } from './alarmInfoEnum'; import { saveAlertTypeData } from './alarmInfoEnum';
import { Section, SectionType } from 'src/graphics/section/Section';
import { LogicSection } from 'src/graphics/logicSection/LogicSection';
const lineStore = useLineStore(); const lineStore = useLineStore();
const setAlartTextData = ref<{ const setAlartTextData = ref<{
@ -133,8 +135,15 @@ watch(
select = true; select = true;
} }
if ( if (
g.type !== Station.Type && (g.type !== Station.Type &&
mapAlertType.get(setAlartTextData.value.alertType)?.includes(g.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; select = true;
} }