字段调整--红光带变光带

This commit is contained in:
joylink_zhaoerwei 2023-08-17 16:41:40 +08:00
parent 01b8113a73
commit 795d6a2199
7 changed files with 31 additions and 8 deletions

View File

@ -131,15 +131,17 @@ onMounted(() => {
messageUse = lineNetStore.alarmInfo[0] as AlarmInfo;
} else {
messageUse = props.alarmMeaasge as AlarmInfo;
/* showConfirmMmessage.value = false;
searchById(); */
/* if (messageUse.alarmStatus == null) {
showConfirmMmessage.value = false;
searchById();
} */
}
updata();
switch (alarmInfo.value.alertType) {
case '道岔失表':
faultTypeOptions = ['道岔均失表', '道岔定位失表', '道岔反位失表'];
break;
case '光带':
case '光带':
faultTypeOptions = [
'计轴红光带',
'计轴大面积红光带',

View File

@ -10,7 +10,7 @@ export enum showAlertTypeData {
'道岔均失表',
'道岔定位失表',
'道岔反位失表',
'光带',
'光带',
'计轴红光带',
'计轴大面积红光带',
'计轴橙光带',
@ -34,7 +34,7 @@ export enum showAlertTypeData {
SWITCH_All_LOST = '道岔均失表',
SWITCH_DW_LOST = '道岔定位失表',
SWITCH_FW_LOST = '道岔反位失表',
AXLE_LED = '光带',
AXLE_LED = '光带',
AXLE_LED_RED = '计轴红光带',
AXLE_LED_RED_MOST = '计轴大面积红光带',
AXLE_LED_ORANGE = '计轴橙光带',
@ -57,7 +57,7 @@ export enum saveAlertTypeData {
= 'SWITCH_All_LOST',
= 'SWITCH_DW_LOST',
= 'SWITCH_FW_LOST',
= 'AXLE_LED',
= 'AXLE_LED',
= 'AXLE_LED_RED',
= 'AXLE_LED_RED_MOST',
= 'AXLE_LED_ORANGE',

View File

@ -70,6 +70,12 @@ onMounted(() => {
});
});
enum showAlertStateData {
'误报',
'确认',
null = '未处理',
}
const columnDefs: QTableColumn[] = [
{
name: 'id',
@ -116,6 +122,16 @@ const columnDefs: QTableColumn[] = [
},
align: 'center',
},
{
name: 'level',
label: '处理状态',
field: (row) => {
if (row.level) {
return (showAlertStateData as never)[row.alarmStatus + ''];
}
},
align: 'center',
},
{ name: 'operations', label: '操作', field: 'operations', align: 'center' },
];

View File

@ -44,7 +44,7 @@ function playAlarmMusic(type: number) {
case '道岔失表':
audioSrc.value = 'src/assets/lost.mp3';
break;
case '光带':
case '光带':
audioSrc.value = 'src/assets/red.mp3';
break;
default:

View File

@ -194,7 +194,7 @@ const optionsAlertType = [
'整侧站台门无法打开',
'整侧站台门无法关闭',
'道岔失表',
'光带',
'光带',
];
async function alarmMockSet() {

View File

@ -271,6 +271,10 @@ const optionsAlertType = [
'道岔均失表',
'道岔定位失表',
'道岔反位失表',
'计轴红光带',
'计轴大面积红光带',
'计轴橙光带',
'计轴大面积橙光带',
];
const optionsTimeType = ['CLOCK_7_9', 'CLOCK_7_9_AND_19_21', '无'];
const locationType = ref('');

View File

@ -14,6 +14,7 @@ export interface AlarmInfo {
alert_object: string;
alert_type: number;
locator_device_id: string;
alarmStatus?: number;
}
export const useLineNetStore = defineStore('lineNet', {
state: () => ({