diff --git a/src/components/SysMenu.vue b/src/components/SysMenu.vue index fd6aaa4..6f11f8a 100644 --- a/src/components/SysMenu.vue +++ b/src/components/SysMenu.vue @@ -66,11 +66,6 @@ const list = reactive([ label: '线路信息管理', icon: 'format_list_numbered', }, - { - path: '/dataManage/decisionInfo', - label: '决策信息管理', - icon: 'format_align_center', - }, { path: '/dataManage/faultQuery', label: '故障查询管理', @@ -145,6 +140,11 @@ const list = reactive([ label: '辅助决策方案管理查询', icon: 'format_align_center', }, + { + path: '/dataManage/emergencyResponse', + label: '应急处置流程表', + icon: 'call_merge', + }, ], }, ]); diff --git a/src/components/alarm/commonAlarm.vue b/src/components/alarm/commonAlarm.vue index 93db671..397fb53 100644 --- a/src/components/alarm/commonAlarm.vue +++ b/src/components/alarm/commonAlarm.vue @@ -81,6 +81,7 @@ function playAlarmMusic(type: number, lineId: number) { i--; } } + if (!lineNetStore.handlePlayAble) return; if (lineNetStore.playAble && audio.value.paused) { const alarmType = (showAlertTypeData as never)[type + '']; let mapAlarmMusic = new Map(); diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 666dd9c..c76c2d0 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -15,13 +15,13 @@ 西安NCC调度辅助决策系统 - + /> --> + diff --git a/src/pages/EmergencyResponseManage.vue b/src/pages/EmergencyResponseManage.vue new file mode 100644 index 0000000..f8aafbf --- /dev/null +++ b/src/pages/EmergencyResponseManage.vue @@ -0,0 +1,456 @@ + + + + + diff --git a/src/router/routes.ts b/src/router/routes.ts index 74a6f76..e88ee20 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -51,6 +51,11 @@ const routes: RouteRecordRaw[] = [ name: 'faultQuery', component: () => import('pages/FaultQueryManage.vue'), }, + { + path: 'emergencyResponse', + name: 'emergencyResponse', + component: () => import('pages/EmergencyResponseManage.vue'), + }, { path: 'thresholdValue', name: 'thresholdValue', diff --git a/src/stores/line-net-store.ts b/src/stores/line-net-store.ts index 106888c..4db806c 100644 --- a/src/stores/line-net-store.ts +++ b/src/stores/line-net-store.ts @@ -33,7 +33,8 @@ export const useLineNetStore = defineStore('lineNet', { alarmInfo: [] as AlarmInfo[], //报警信息 untreatedMap: new Map(), // 未处理的报警 alarmInfoListTable: undefined as QTable | undefined, - playAble: false, //是否允许播放音乐 + playAble: false, //是否允许播放音乐(与页面交互之后为true) + handlePlayAble: true, //默认交互之后可播放音乐 closeAllAlarmInfoDialog: false, connectButtonColor: 'green', connectInfo: null as state.WarnLineMessage | null,