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

View File

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

View File

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

View File

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