diff --git a/src/components/alarm/alarmInfoEnum.ts b/src/components/alarm/alarmInfoEnum.ts index a66a273..76c6380 100644 --- a/src/components/alarm/alarmInfoEnum.ts +++ b/src/components/alarm/alarmInfoEnum.ts @@ -23,6 +23,7 @@ export enum showAlertTypeData { '联锁区橙光带', '联锁区失表', '一级联锁', + '应急触发', I = 'I类信息', II = 'II类信息', III = 'III类信息', diff --git a/src/components/alarm/setAlarmMock.vue b/src/components/alarm/setAlarmMock.vue index 42330e7..0e12fa6 100644 --- a/src/components/alarm/setAlarmMock.vue +++ b/src/components/alarm/setAlarmMock.vue @@ -103,6 +103,7 @@ const optionsAlertType = [ '计轴橙光带', '计轴大面积橙光带', '列车信号故障', + '应急触发', ]; const mapAlertType = new Map([ ['蓝显', ['station']], @@ -115,6 +116,7 @@ const mapAlertType = new Map([ ['计轴橙光带', ['Section']], ['计轴大面积橙光带', ['Section']], ['列车信号故障', ['LogicSection', 'Turnout']], + ['应急触发', ['Platform']], ]); let selectGraphic: JlGraphic[] = []; diff --git a/src/components/alarm/setAlarmText.vue b/src/components/alarm/setAlarmText.vue index a805df6..6d06c0c 100644 --- a/src/components/alarm/setAlarmText.vue +++ b/src/components/alarm/setAlarmText.vue @@ -158,6 +158,7 @@ const optionsAlertType = [ '计轴红光带', '计轴橙光带', '列车信号故障', + '应急触发', ]; const mapAlertType = new Map([ ['蓝显', ['station']], @@ -165,11 +166,13 @@ const mapAlertType = new Map([ ['计轴红光带', ['LogicSection', 'Turnout']], ['计轴橙光带', ['LogicSection', 'Turnout']], ['列车信号故障', ['LogicSection', 'Turnout']], + ['应急触发', ['Platform']], ]); enum DeviceType { station = 'DEVICE_TYPE_RTU', Turnout = 'DEVICE_TYPE_SWITCH', LogicSection = 'DEVICE_TYPE_TRACK', + Platform = 'DEVICE_TYPE_PLATFORM', } const optionsStatus = [ { label: '正常', value: 'NORMAL' }, diff --git a/src/pages/DecisionInfoManage.vue b/src/pages/DecisionInfoManage.vue index 3f72365..15daf37 100644 --- a/src/pages/DecisionInfoManage.vue +++ b/src/pages/DecisionInfoManage.vue @@ -411,6 +411,7 @@ const optionsAlertType = [ '联锁区红光带', '联锁区橙光带', '联锁区失表', + '应急触发', ]; const searchOptionsAlertType = ['全部', ...optionsAlertType]; let optionsLocationType = ref([]); @@ -418,7 +419,7 @@ let optionsLocationList: AreaConfigItem[] = []; async function searchLocationType() { try { const alertType = (saveAlertTypeData as never)[creatForm.alertType]; - optionsLocationList = await getDeviceAreaByAlarmType(3, alertType); + optionsLocationList = await getDeviceAreaByAlarmType(+creatForm.lineId, alertType); optionsLocationType.value = optionsLocationList.map( (item) => item.areaName );