1范围划分 故障类型 删除 二级联锁

2 范围划分 故障类型 隐藏 联锁区红光带,联锁区橙光带
3 范围划分 故障类型 “一级联锁” 只能选择一个故障类型,且只能选择一个设备(集中站)
4 决策信息筛选 添加SWITCH_LOST_INTERLOCK_AREA(联锁区失表)
5 告警提示对SWITCH_LOST_INTERLOCK_AREA(联锁区失表)类型的支持
6 决策信息筛选 隐藏 “一级联锁”选项
This commit is contained in:
joylink_zhaoerwei 2023-09-27 14:34:30 +08:00
parent 6070c127fe
commit ce8b36179d
4 changed files with 32 additions and 10 deletions

View File

@ -21,8 +21,8 @@ export enum showAlertTypeData {
'全线蓝显',
'联锁区红光带',
'联锁区橙光带',
'一级联锁' = 26,
'二级联锁' = 27,
'联锁区失表',
'一级联锁',
I = 'I类信息',
II = 'II类信息',
III = 'III类信息',
@ -51,8 +51,8 @@ export enum showAlertTypeData {
ALL_LINE_BLUE_DISPLAY = '全线蓝显',
AXLE_LED_RED_INTERLOCK_AREA = '联锁区红光带',
AXLE_LED_ORANGE_INTERLOCK_AREA = '联锁区橙光带',
SWITCH_LOST_INTERLOCK_AREA = '联锁区失表',
INTERLOCK_LEVEL_ONE = '一级联锁',
INTERLOCK_LEVEL_TWO = '二级联锁',
}
export enum saveAlertTypeData {
@ -80,8 +80,8 @@ export enum saveAlertTypeData {
线 = 'ALL_LINE_BLUE_DISPLAY',
= 'AXLE_LED_RED_INTERLOCK_AREA',
= 'AXLE_LED_ORANGE_INTERLOCK_AREA',
= 'SWITCH_LOST_INTERLOCK_AREA',
= 'INTERLOCK_LEVEL_ONE',
= 'INTERLOCK_LEVEL_TWO',
}
export const GuardConfigTypeData = {

View File

@ -130,10 +130,7 @@ const optionsAlertType = [
'计轴大面积橙光带',
'道岔大面积失表',
'列车信号故障',
'联锁区红光带',
'联锁区橙光带',
'一级联锁',
'二级联锁',
];
enum DeviceType {
@ -149,6 +146,26 @@ enum DeviceTypeShow {
DEVICE_TYPE_PLATFORM = 'Platform',
}
watch(
() => rangeConfig.alertTypes,
(alertTypes) => {
if (alertTypes[0] == '一级联锁') {
alertTypes.splice(1);
}
if (
alertTypes[0] !== '一级联锁' &&
alertTypes.slice(1).includes('一级联锁')
) {
for (let i = 0; i < alertTypes.length; i++) {
if (alertTypes[i] == '一级联锁') {
alertTypes.splice(i, 1);
break;
}
}
}
}
);
let selectGraphic: JlGraphic[] = [];
watch(
() => rangeConfigStore.selectedGraphics,
@ -173,7 +190,11 @@ watch(
}
return select;
}) as JlGraphic[];
if (rangeConfig.alertTypes[0] !== '一级联锁') {
selectGraphic.push(...deviceFilter);
} else if (deviceFilter.length) {
selectGraphic = [deviceFilter[0]];
}
selectGraphic = Array.from(new Set(selectGraphic));
getRangeConfigApp().updateSelected(...selectGraphic);
device.value = selectGraphic.map((g) => g.code) as string[];

View File

@ -332,6 +332,7 @@ const optionsAlertType = [
'列车信号故障',
'联锁区红光带',
'联锁区橙光带',
'联锁区失表',
];
let optionsLocationType = ref<string[]>([]);
let optionsLocationList: AreaConfigItem[] = [];

View File

@ -34,8 +34,8 @@ export namespace alert {
ALL_LINE_BLUE_DISPLAY = 19,
AXLE_LED_RED_INTERLOCK_AREA = 20,
AXLE_LED_ORANGE_INTERLOCK_AREA = 21,
INTERLOCK_LEVEL_ONE = 26,
INTERLOCK_LEVEL_TWO = 27
SWITCH_LOST_INTERLOCK_AREA = 22,
INTERLOCK_LEVEL_ONE = 23
}
export enum TipTimeConfig {
HOLIDAYS_MORN_PEAK = 0,