增加模拟故障种类

This commit is contained in:
joylink_zhaoerwei 2023-08-17 11:20:10 +08:00
parent 7d68bcb16a
commit 52155b6939
2 changed files with 10 additions and 10 deletions

View File

@ -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',

View File

@ -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];