diff --git a/src/components/alarm/alarmInfoDialog.vue b/src/components/alarm/alarmInfoDialog.vue index 5de4e85..3e2ae82 100644 --- a/src/components/alarm/alarmInfoDialog.vue +++ b/src/components/alarm/alarmInfoDialog.vue @@ -144,6 +144,7 @@ function submitChooseType() { function falsePositives() { showDialog.value = false; recordFailAlarmInfoById(+messageUse.id); + lineNetStore.treatedAlarm(messageUse); } function updata() { @@ -166,6 +167,7 @@ async function search() { drivingInfo.value = JSON.parse(response.data.drivingInfo); submissionInfo.value = JSON.parse(response.data.submissionInfo); recordConfirmAlarmInfoByTipId(+messageUse.id, response.data.id); + lineNetStore.treatedAlarm(messageUse); } catch (err) { $q.notify({ type: 'negative', diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 299bb98..607dee7 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -129,6 +129,7 @@ import { mockAlertSet } from 'src/api/AlertMock'; import alarmInfoList from 'src/components/alarm/alarmInfoList.vue'; import commonAlarm from 'src/components/alarm/commonAlarm.vue'; import { useLineNetStore } from 'src/stores/line-net-store'; +import { saveAlertTypeData } from 'src/components/alarm/alarmInfoEnum'; const lineNetStore = useLineNetStore(); const badgeNum = computed(() => { @@ -186,21 +187,18 @@ const alertSetShow = ref(false); const alertType = ref(''); const lineId = ref(); const optionsAlertType = [ + '蓝显', '列车延误2分钟', '列车延误10分钟', - '蓝显', - '站台门无关闭且锁紧信号', + '整侧站台门无关闭锁紧信号', '整侧站台门无法打开', '整侧站台门无法关闭', + '道岔失表', + '道岔均失表', + '道岔定位失表', + '道岔反位失表', ]; -enum saveAlertTypeData { - 列车延误2分钟 = 'TRAIN_DELAY_2', - 列车延误10分钟 = 'TRAIN_DELAY_10', - 蓝显 = 'BLUE_DISPLAY', - 站台门无关闭且锁紧信号 = 'PLATFORM_DOOR_WITHOUT_LOCKED_SIGNAL', - 整侧站台门无法打开 = 'PLATFORM_DOOR_CANNOT_OPEN', - 整侧站台门无法关闭 = 'PLATFORM_DOOR_CANNOT_CLOSE', -} + async function alarmMockSet() { try { const type = (saveAlertTypeData as never)[alertType.value];