字段调整--红光带变光带
This commit is contained in:
parent
01b8113a73
commit
795d6a2199
@ -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 = [
|
||||
'计轴红光带',
|
||||
'计轴大面积红光带',
|
||||
|
@ -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',
|
||||
|
@ -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' },
|
||||
];
|
||||
|
||||
|
@ -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:
|
||||
|
@ -194,7 +194,7 @@ const optionsAlertType = [
|
||||
'整侧站台门无法打开',
|
||||
'整侧站台门无法关闭',
|
||||
'道岔失表',
|
||||
'红光带',
|
||||
'光带',
|
||||
];
|
||||
|
||||
async function alarmMockSet() {
|
||||
|
@ -271,6 +271,10 @@ const optionsAlertType = [
|
||||
'道岔均失表',
|
||||
'道岔定位失表',
|
||||
'道岔反位失表',
|
||||
'计轴红光带',
|
||||
'计轴大面积红光带',
|
||||
'计轴橙光带',
|
||||
'计轴大面积橙光带',
|
||||
];
|
||||
const optionsTimeType = ['CLOCK_7_9', 'CLOCK_7_9_AND_19_21', '无'];
|
||||
const locationType = ref('');
|
||||
|
@ -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: () => ({
|
||||
|
Loading…
Reference in New Issue
Block a user