diff --git a/public/alarmMusic/all-line-blue.mp3 b/public/alarmMusic/3/all-line-blue.mp3 similarity index 100% rename from public/alarmMusic/all-line-blue.mp3 rename to public/alarmMusic/3/all-line-blue.mp3 diff --git a/public/alarmMusic/atp-cut.mp3 b/public/alarmMusic/3/atp-cut.mp3 similarity index 100% rename from public/alarmMusic/atp-cut.mp3 rename to public/alarmMusic/3/atp-cut.mp3 diff --git a/public/alarmMusic/blue.mp3 b/public/alarmMusic/3/blue.mp3 similarity index 100% rename from public/alarmMusic/blue.mp3 rename to public/alarmMusic/3/blue.mp3 diff --git a/public/alarmMusic/cannot-close.mp3 b/public/alarmMusic/3/cannot-close.mp3 similarity index 100% rename from public/alarmMusic/cannot-close.mp3 rename to public/alarmMusic/3/cannot-close.mp3 diff --git a/public/alarmMusic/cannot-open.mp3 b/public/alarmMusic/3/cannot-open.mp3 similarity index 100% rename from public/alarmMusic/cannot-open.mp3 rename to public/alarmMusic/3/cannot-open.mp3 diff --git a/public/alarmMusic/orange-most.mp3 b/public/alarmMusic/3/orange-most.mp3 similarity index 100% rename from public/alarmMusic/orange-most.mp3 rename to public/alarmMusic/3/orange-most.mp3 diff --git a/public/alarmMusic/orange.mp3 b/public/alarmMusic/3/orange.mp3 similarity index 100% rename from public/alarmMusic/orange.mp3 rename to public/alarmMusic/3/orange.mp3 diff --git a/public/alarmMusic/3/platform_emerg_stop.mp3 b/public/alarmMusic/3/platform_emerg_stop.mp3 new file mode 100644 index 0000000..6c51262 Binary files /dev/null and b/public/alarmMusic/3/platform_emerg_stop.mp3 differ diff --git a/public/alarmMusic/red-most.mp3 b/public/alarmMusic/3/red-most.mp3 similarity index 100% rename from public/alarmMusic/red-most.mp3 rename to public/alarmMusic/3/red-most.mp3 diff --git a/public/alarmMusic/red.mp3 b/public/alarmMusic/3/red.mp3 similarity index 100% rename from public/alarmMusic/red.mp3 rename to public/alarmMusic/3/red.mp3 diff --git a/public/alarmMusic/switch-lost-most.mp3 b/public/alarmMusic/3/switch-lost-most.mp3 similarity index 100% rename from public/alarmMusic/switch-lost-most.mp3 rename to public/alarmMusic/3/switch-lost-most.mp3 diff --git a/public/alarmMusic/switch-lost.mp3 b/public/alarmMusic/3/switch-lost.mp3 similarity index 100% rename from public/alarmMusic/switch-lost.mp3 rename to public/alarmMusic/3/switch-lost.mp3 diff --git a/public/alarmMusic/3/switch_jammed.mp3 b/public/alarmMusic/3/switch_jammed.mp3 new file mode 100644 index 0000000..96664e5 Binary files /dev/null and b/public/alarmMusic/3/switch_jammed.mp3 differ diff --git a/public/alarmMusic/4/all-line-blue.mp3 b/public/alarmMusic/4/all-line-blue.mp3 new file mode 100644 index 0000000..00daa6c Binary files /dev/null and b/public/alarmMusic/4/all-line-blue.mp3 differ diff --git a/public/alarmMusic/4/atp-cut.mp3 b/public/alarmMusic/4/atp-cut.mp3 new file mode 100644 index 0000000..1f4afcb Binary files /dev/null and b/public/alarmMusic/4/atp-cut.mp3 differ diff --git a/public/alarmMusic/4/blue.mp3 b/public/alarmMusic/4/blue.mp3 new file mode 100644 index 0000000..3ed2f30 Binary files /dev/null and b/public/alarmMusic/4/blue.mp3 differ diff --git a/public/alarmMusic/4/cannot-close.mp3 b/public/alarmMusic/4/cannot-close.mp3 new file mode 100644 index 0000000..2a212f5 Binary files /dev/null and b/public/alarmMusic/4/cannot-close.mp3 differ diff --git a/public/alarmMusic/4/cannot-open.mp3 b/public/alarmMusic/4/cannot-open.mp3 new file mode 100644 index 0000000..2c5691a Binary files /dev/null and b/public/alarmMusic/4/cannot-open.mp3 differ diff --git a/public/alarmMusic/4/orange-most.mp3 b/public/alarmMusic/4/orange-most.mp3 new file mode 100644 index 0000000..a7bb100 Binary files /dev/null and b/public/alarmMusic/4/orange-most.mp3 differ diff --git a/public/alarmMusic/4/orange.mp3 b/public/alarmMusic/4/orange.mp3 new file mode 100644 index 0000000..009d455 Binary files /dev/null and b/public/alarmMusic/4/orange.mp3 differ diff --git a/public/alarmMusic/4/platform_emerg_stop.mp3 b/public/alarmMusic/4/platform_emerg_stop.mp3 new file mode 100644 index 0000000..d26affe Binary files /dev/null and b/public/alarmMusic/4/platform_emerg_stop.mp3 differ diff --git a/public/alarmMusic/4/red-most.mp3 b/public/alarmMusic/4/red-most.mp3 new file mode 100644 index 0000000..d7135b6 Binary files /dev/null and b/public/alarmMusic/4/red-most.mp3 differ diff --git a/public/alarmMusic/4/red.mp3 b/public/alarmMusic/4/red.mp3 new file mode 100644 index 0000000..24dab9c Binary files /dev/null and b/public/alarmMusic/4/red.mp3 differ diff --git a/public/alarmMusic/4/switch-lost-most.mp3 b/public/alarmMusic/4/switch-lost-most.mp3 new file mode 100644 index 0000000..07451da Binary files /dev/null and b/public/alarmMusic/4/switch-lost-most.mp3 differ diff --git a/public/alarmMusic/4/switch-lost.mp3 b/public/alarmMusic/4/switch-lost.mp3 new file mode 100644 index 0000000..3e75031 Binary files /dev/null and b/public/alarmMusic/4/switch-lost.mp3 differ diff --git a/public/alarmMusic/4/switch_jammed.mp3 b/public/alarmMusic/4/switch_jammed.mp3 new file mode 100644 index 0000000..20830ac Binary files /dev/null and b/public/alarmMusic/4/switch_jammed.mp3 differ diff --git a/src/api/faultQuery.ts b/src/api/faultQuery.ts new file mode 100644 index 0000000..8383500 --- /dev/null +++ b/src/api/faultQuery.ts @@ -0,0 +1,77 @@ +import { api } from 'src/boot/axios'; +import { PageDto, PageQueryDto } from './ApiCommon'; + +const faultQueryUriBase = '/api/fault/query'; + +export interface FaultQueryListItem { + id?: number; + lineId: number; + faultType: string; + faultNameShower: string; + faultDriverShower: string; + resultMsg: string; +} + +export interface FaultQueryInfo { + data: T; +} + +export class PagingQueryParams extends PageQueryDto { + lineId?: string; + faultType?: string; + faultName?: string; +} + +/** + * 分页查询故障查询 + * @param params + * @returns + */ +export async function faultQueryPageQuery( + params: PagingQueryParams +): Promise> { + const response = await api.get(`${faultQueryUriBase}/page`, { + params: params, + }); + return response.data; +} + +/** + * 创建或编辑故障查询 + * @param params + * @returns + */ +export function createFaultQuery(faultData: FaultQueryListItem) { + return api.post(`${faultQueryUriBase}`, faultData); +} + +/** + * 删除故障查询 + * @param id 草稿id + */ +export function deleteFaultQueryById(id: number) { + return api.delete(`${faultQueryUriBase}/${id}`); +} + +/** + * 根据id获取故障查询 + * @param id 草稿id + */ +export function faultQueryById( + id: number +): Promise> { + return api.get(`${faultQueryUriBase}/${id}`); +} + +export interface FaultTypeItem { + fts: { faultType: string; typeName: string }[]; + lineId: number; +} + +/** + * 获取故障类型 + */ +export async function faultQueryType(): Promise> { + const response = await api.get(`${faultQueryUriBase}/type`); + return response.data; +} diff --git a/src/components/SysMenu.vue b/src/components/SysMenu.vue index 0bf85b9..57eabd0 100644 --- a/src/components/SysMenu.vue +++ b/src/components/SysMenu.vue @@ -77,6 +77,11 @@ const list = reactive([ label: '决策信息管理', icon: 'format_align_center', }, + { + path: '/dataManage/faultQuery', + label: '故障查询管理', + icon: 'disabled_by_default', + }, { path: '/dataManage/thresholdValue', label: '报警故障阈值配置', diff --git a/src/components/alarm/alarmInfoEnum.ts b/src/components/alarm/alarmInfoEnum.ts index 76c6380..fce1206 100644 --- a/src/components/alarm/alarmInfoEnum.ts +++ b/src/components/alarm/alarmInfoEnum.ts @@ -24,6 +24,7 @@ export enum showAlertTypeData { '联锁区失表', '一级联锁', '应急触发', + '道岔挤岔', I = 'I类信息', II = 'II类信息', III = 'III类信息', @@ -55,6 +56,7 @@ export enum showAlertTypeData { SWITCH_LOST_INTERLOCK_AREA = '联锁区失表', INTERLOCK_LEVEL_ONE = '一级联锁', PLATFORM_EMERG_STOP = '应急触发', + SWITCH_JAMMED = '道岔挤岔', } export enum saveAlertTypeData { @@ -85,6 +87,7 @@ export enum saveAlertTypeData { 联锁区失表 = 'SWITCH_LOST_INTERLOCK_AREA', 一级联锁 = 'INTERLOCK_LEVEL_ONE', 应急触发 = 'PLATFORM_EMERG_STOP', + 道岔挤岔 = 'SWITCH_JAMMED', } export const GuardConfigTypeData = { diff --git a/src/components/alarm/commonAlarm.vue b/src/components/alarm/commonAlarm.vue index 9abb392..93db671 100644 --- a/src/components/alarm/commonAlarm.vue +++ b/src/components/alarm/commonAlarm.vue @@ -12,17 +12,33 @@ import { AlarmInfo, useLineNetStore } from 'src/stores/line-net-store'; import { DialogChainObject, useQuasar } from 'quasar'; import alarmInfoDialog from 'src/components/alarm/alarmInfoDialog.vue'; import { showAlertTypeData } from './alarmInfoEnum'; -import allLineBlue from '/alarmMusic/all-line-blue.mp3'; -import atpcut from '/alarmMusic/atp-cut.mp3'; -import blue from '/alarmMusic/blue.mp3'; -import cannotClose from '/alarmMusic/cannot-close.mp3'; -import cannotOpen from '/alarmMusic/cannot-open.mp3'; -import orangeMost from '/alarmMusic/orange-most.mp3'; -import orange from '/alarmMusic/orange.mp3'; -import redMost from '/alarmMusic/red-most.mp3'; -import red from '/alarmMusic/red.mp3'; -import switchLostMost from '/alarmMusic/switch-lost-most.mp3'; -import switchLost from '/alarmMusic/switch-lost.mp3'; +import allLineBlue3 from '/alarmMusic/3/all-line-blue.mp3'; +import atpcut3 from '/alarmMusic/3/atp-cut.mp3'; +import blue3 from '/alarmMusic/3/blue.mp3'; +import cannotClose3 from '/alarmMusic/3/cannot-close.mp3'; +import cannotOpen3 from '/alarmMusic/3/cannot-open.mp3'; +import orangeMost3 from '/alarmMusic/3/orange-most.mp3'; +import orange3 from '/alarmMusic/3/orange.mp3'; +import redMost3 from '/alarmMusic/3/red-most.mp3'; +import red3 from '/alarmMusic/3/red.mp3'; +import switchLostMost3 from '/alarmMusic/3/switch-lost-most.mp3'; +import switchLost3 from '/alarmMusic/3/switch-lost.mp3'; +import switchJammed3 from '/alarmMusic/3/switch_jammed.mp3'; +import platformEmergStop3 from '/alarmMusic/3/platform_emerg_stop.mp3'; +//4号线 +import allLineBlue4 from '/alarmMusic/4/all-line-blue.mp3'; +import atpcut4 from '/alarmMusic/4/atp-cut.mp3'; +import blue4 from '/alarmMusic/4/blue.mp3'; +import cannotClose4 from '/alarmMusic/4/cannot-close.mp3'; +import cannotOpen4 from '/alarmMusic/4/cannot-open.mp3'; +import orangeMost4 from '/alarmMusic/4/orange-most.mp3'; +import orange4 from '/alarmMusic/4/orange.mp3'; +import redMost4 from '/alarmMusic/4/red-most.mp3'; +import red4 from '/alarmMusic/4/red.mp3'; +import switchLostMost4 from '/alarmMusic/4/switch-lost-most.mp3'; +import switchLost4 from '/alarmMusic/4/switch-lost.mp3'; +import switchJammed4 from '/alarmMusic/4/switch_jammed.mp3'; +import platformEmergStop4 from '/alarmMusic/4/platform_emerg_stop.mp3'; import buzzer from '/alarmMusic/buzzer.mp3'; const lineNetStore = useLineNetStore(); @@ -39,8 +55,8 @@ watch( const hasShow = countHasShowFiveDialog(); if (!hasShow) { const alarmType = val[0].alert_type; - alarm(alarmType, val[0].id); - playAlarmMusic(alarmType); + alarm(alarmType, val[0].id, +val[0].line_id); + playAlarmMusic(alarmType, +val[0].line_id); } else { waitShowDialog.push(toRaw(lineNetStore.alarmInfo[0])); } @@ -58,7 +74,7 @@ watch( } ); -function playAlarmMusic(type: number) { +function playAlarmMusic(type: number, lineId: number) { for (let i = 0; i < dialogInstance.length; i++) { if (dialogInstance[i].show == false) { dialogInstance.splice(i, 1); @@ -67,19 +83,43 @@ function playAlarmMusic(type: number) { } if (lineNetStore.playAble && audio.value.paused) { const alarmType = (showAlertTypeData as never)[type + '']; - const mapAlarmMusic = new Map([ - ['蓝显', blue], - ['全线蓝显', allLineBlue], - ['整侧站台门无法打开', cannotOpen], - ['整侧站台门无法关闭', cannotClose], - ['道岔失表', switchLost], - ['道岔大面积失表', switchLostMost], - ['计轴红光带', red], - ['计轴大面积红光带', redMost], - ['计轴橙光带', orange], - ['计轴大面积橙光带', orangeMost], - ['列车信号故障', atpcut], - ]); + let mapAlarmMusic = new Map(); + switch (lineId) { + case 3: + mapAlarmMusic = new Map([ + ['蓝显', blue3], + ['全线蓝显', allLineBlue3], + ['整侧站台门无法打开', cannotOpen3], + ['整侧站台门无法关闭', cannotClose3], + ['道岔失表', switchLost3], + ['道岔大面积失表', switchLostMost3], + ['计轴红光带', red3], + ['计轴大面积红光带', redMost3], + ['计轴橙光带', orange3], + ['计轴大面积橙光带', orangeMost3], + ['列车信号故障', atpcut3], + ['应急触发', platformEmergStop3], + ['道岔挤岔', switchJammed3], + ]); + break; + case 4: + mapAlarmMusic = new Map([ + ['蓝显', blue4], + ['全线蓝显', allLineBlue4], + ['整侧站台门无法打开', cannotOpen4], + ['整侧站台门无法关闭', cannotClose4], + ['道岔失表', switchLost4], + ['道岔大面积失表', switchLostMost4], + ['计轴红光带', red4], + ['计轴大面积红光带', redMost4], + ['计轴橙光带', orange4], + ['计轴大面积橙光带', orangeMost4], + ['列车信号故障', atpcut4], + ['应急触发', platformEmergStop4], + ['道岔挤岔', switchJammed4], + ]); + break; + } const music = mapAlarmMusic.get(alarmType); if (music !== undefined) { audioSrc.value = music; @@ -102,7 +142,7 @@ function timingPlayAlarmMusic(dialog: DialogChainObject) { !dialogInstance[i].hasHandle && dialogInstance[i].dialog == dialog ) { - playAlarmMusic(dialogInstance[i].alarmType); + playAlarmMusic(dialogInstance[i].alarmType, dialogInstance[i].lineId); timingPlayAlarmMusic(dialog); } } @@ -116,6 +156,7 @@ const dialogInstance: { timer: string | number | NodeJS.Timeout | undefined; id: string; hasHandle: boolean; + lineId: number; }[] = []; function countHasShowFiveDialog(): boolean { @@ -129,7 +170,12 @@ function countHasShowFiveDialog(): boolean { return hasShow > 4 ? true : false; } -function alarm(alarmType: number, id: string, waitAlarmMeaasge?: AlarmInfo) { +function alarm( + alarmType: number, + id: string, + lineId: number, + waitAlarmMeaasge?: AlarmInfo +) { const dialogInstanceItem = $q .dialog({ component: alarmInfoDialog, @@ -160,6 +206,7 @@ function alarm(alarmType: number, id: string, waitAlarmMeaasge?: AlarmInfo) { timer, hasHandle: false, id, + lineId, }); timingPlayAlarmMusic(dialogInstanceItem); } @@ -169,9 +216,10 @@ function alarmWaitDialog() { alarm( waitShowDialog[0].alert_type, waitShowDialog[0].id, + +waitShowDialog[0].line_id, waitShowDialog[0] ); - playAlarmMusic(waitShowDialog[0].alert_type); + playAlarmMusic(waitShowDialog[0].alert_type, +waitShowDialog[0].line_id); waitShowDialog.shift(); } } diff --git a/src/components/alarm/setAlarmMock.vue b/src/components/alarm/setAlarmMock.vue index 0e12fa6..63633d0 100644 --- a/src/components/alarm/setAlarmMock.vue +++ b/src/components/alarm/setAlarmMock.vue @@ -104,6 +104,7 @@ const optionsAlertType = [ '计轴大面积橙光带', '列车信号故障', '应急触发', + '道岔挤岔', ]; const mapAlertType = new Map([ ['蓝显', ['station']], @@ -117,6 +118,7 @@ const mapAlertType = new Map([ ['计轴大面积橙光带', ['Section']], ['列车信号故障', ['LogicSection', 'Turnout']], ['应急触发', ['Platform']], + ['道岔挤岔', ['Turnout']], ]); let selectGraphic: JlGraphic[] = []; diff --git a/src/components/alarm/setAlarmText.vue b/src/components/alarm/setAlarmText.vue index 6d06c0c..eb7bdc3 100644 --- a/src/components/alarm/setAlarmText.vue +++ b/src/components/alarm/setAlarmText.vue @@ -159,6 +159,7 @@ const optionsAlertType = [ '计轴橙光带', '列车信号故障', '应急触发', + '道岔挤岔', ]; const mapAlertType = new Map([ ['蓝显', ['station']], @@ -167,6 +168,7 @@ const mapAlertType = new Map([ ['计轴橙光带', ['LogicSection', 'Turnout']], ['列车信号故障', ['LogicSection', 'Turnout']], ['应急触发', ['Platform']], + ['道岔挤岔', ['Turnout']], ]); enum DeviceType { station = 'DEVICE_TYPE_RTU', diff --git a/src/components/dialog/FaultQueryDialog.vue b/src/components/dialog/FaultQueryDialog.vue new file mode 100644 index 0000000..c9f9267 --- /dev/null +++ b/src/components/dialog/FaultQueryDialog.vue @@ -0,0 +1,311 @@ + + + + + diff --git a/src/components/rangeConfigApp/RangeConfig.vue b/src/components/rangeConfigApp/RangeConfig.vue index 4e3244c..82389e8 100644 --- a/src/components/rangeConfigApp/RangeConfig.vue +++ b/src/components/rangeConfigApp/RangeConfig.vue @@ -131,6 +131,7 @@ const optionsAlertType = [ '列车信号故障', '一级联锁', '应急触发', + '道岔挤岔', ]; enum DeviceType { diff --git a/src/drawApp/lineApp.ts b/src/drawApp/lineApp.ts index 79ac160..308d714 100644 --- a/src/drawApp/lineApp.ts +++ b/src/drawApp/lineApp.ts @@ -77,21 +77,25 @@ import { useUserStore } from 'src/stores/user-store'; import { getMonitorPath } from 'src/router/routes'; let lineApp: IGraphicApp | null = null; +const lineAppMap = new Map(); export function getLineApp() { return lineApp; } export function destroyLineApp(): void { - if (lineApp) { - lineApp.destroy(); - lineApp = null; + for (const key of lineAppMap.keys()) { + const app = lineAppMap.get(key); + if (app) { + app.destroy(); + } } + lineApp = null; } -export function initLineApp(): IGraphicApp { +export function initLineApp(lineId: number): IGraphicApp { + lineApp = lineAppMap.get(lineId) || null; if (lineApp) return lineApp; - lineApp = newGraphicApp({ interactiveGraphicTypeIncludes: [ Signal.Type, @@ -109,6 +113,7 @@ export function initLineApp(): IGraphicApp { }, dataLoader: loadLineDatas, }); + lineAppMap.set(lineId, lineApp); const graphicTemplate = [ new TrainTemplate(new TrainData(), new TrainState()), diff --git a/src/drawApp/lineNetApp.ts b/src/drawApp/lineNetApp.ts index 5f39c40..e1fe7de 100644 --- a/src/drawApp/lineNetApp.ts +++ b/src/drawApp/lineNetApp.ts @@ -52,6 +52,7 @@ export function destroyLineNetApp(): void { } export function initLineNetApp(): IGraphicApp { + if (lineNetApp) return lineNetApp; lineNetApp = newGraphicApp({ interactiveGraphicTypeIncludes: [ RunLine.Type, diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index a8013cc..1315359 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -15,7 +15,20 @@ 西安NCC调度辅助决策系统 - + + { socket = webSocketConnect(destination, handler); }); +function openFaultQueryDialog(dialogTitle: string) { + $q.dialog({ + component: FaultQueryDialog, + componentProps: { + dialogTitle, + }, + }); +} + //模拟报警 const $q = useQuasar(); function openSetAlarmMockDialog() { diff --git a/src/pages/AlarmInfoList.vue b/src/pages/AlarmInfoList.vue index 2748b55..c6bf285 100644 --- a/src/pages/AlarmInfoList.vue +++ b/src/pages/AlarmInfoList.vue @@ -496,6 +496,7 @@ const optionsAlertType = [ '联锁区红光带', '联锁区橙光带', '应急触发', + '道岔挤岔', ]; //时间校验 diff --git a/src/pages/DecisionInfoManage.vue b/src/pages/DecisionInfoManage.vue index 15daf37..113a288 100644 --- a/src/pages/DecisionInfoManage.vue +++ b/src/pages/DecisionInfoManage.vue @@ -412,6 +412,7 @@ const optionsAlertType = [ '联锁区橙光带', '联锁区失表', '应急触发', + '道岔挤岔', ]; const searchOptionsAlertType = ['全部', ...optionsAlertType]; let optionsLocationType = ref([]); @@ -419,7 +420,10 @@ let optionsLocationList: AreaConfigItem[] = []; async function searchLocationType() { try { const alertType = (saveAlertTypeData as never)[creatForm.alertType]; - optionsLocationList = await getDeviceAreaByAlarmType(+creatForm.lineId, alertType); + optionsLocationList = await getDeviceAreaByAlarmType( + +creatForm.lineId, + alertType + ); optionsLocationType.value = optionsLocationList.map( (item) => item.areaName ); diff --git a/src/pages/FaultQueryManage.vue b/src/pages/FaultQueryManage.vue new file mode 100644 index 0000000..1cf14d9 --- /dev/null +++ b/src/pages/FaultQueryManage.vue @@ -0,0 +1,501 @@ + + + + + diff --git a/src/pages/LineMonitorPage.vue b/src/pages/LineMonitorPage.vue index ea9f355..3c2bf0e 100644 --- a/src/pages/LineMonitorPage.vue +++ b/src/pages/LineMonitorPage.vue @@ -7,7 +7,7 @@ diff --git a/src/pages/MonitorPage.vue b/src/pages/MonitorPage.vue index c921ee5..579d4ba 100644 --- a/src/pages/MonitorPage.vue +++ b/src/pages/MonitorPage.vue @@ -7,7 +7,7 @@ diff --git a/src/protos/alertConst.ts b/src/protos/alertConst.ts index 588158b..d5c0b1f 100644 --- a/src/protos/alertConst.ts +++ b/src/protos/alertConst.ts @@ -36,7 +36,8 @@ export namespace alert { AXLE_LED_ORANGE_INTERLOCK_AREA = 21, SWITCH_LOST_INTERLOCK_AREA = 22, INTERLOCK_LEVEL_ONE = 23, - PLATFORM_EMERG_STOP = 24 + PLATFORM_EMERG_STOP = 24, + SWITCH_JAMMED = 25 } export enum TipTimeConfig { HOLIDAYS_MORN_PEAK = 0, diff --git a/src/router/routes.ts b/src/router/routes.ts index 0568314..4ddbeba 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -46,6 +46,11 @@ const routes: RouteRecordRaw[] = [ name: 'decisionInfo', component: () => import('pages/DecisionInfoManage.vue'), }, + { + path: 'faultQuery', + name: 'faultQuery', + component: () => import('pages/FaultQueryManage.vue'), + }, { path: 'thresholdValue', name: 'thresholdValue', diff --git a/src/stores/line-store.ts b/src/stores/line-store.ts index 98c305f..d2f09b8 100644 --- a/src/stores/line-store.ts +++ b/src/stores/line-store.ts @@ -39,7 +39,7 @@ export const useLineStore = defineStore('line', { }, initLineApp(lineId: number) { this.setLineId(lineId); - const app = initLineApp(); + const app = initLineApp(lineId); app.on('graphicselected', (graphics) => { this.selectedGraphics = markRaw(graphics); }); diff --git a/xian-ncc-da-message b/xian-ncc-da-message index c8ca178..a7b7268 160000 --- a/xian-ncc-da-message +++ b/xian-ncc-da-message @@ -1 +1 @@ -Subproject commit c8ca17875615e4fd3483a7b15c11a1bc2f2f9cd5 +Subproject commit a7b726826b89520f047c268415702df8116d225f