diff --git a/src/stores/line-net-store.ts b/src/stores/line-net-store.ts index 975caab..0b1d48b 100644 --- a/src/stores/line-net-store.ts +++ b/src/stores/line-net-store.ts @@ -7,7 +7,7 @@ import { cancelSubscribe, } from 'src/drawApp/lineNetApp'; import { markRaw } from 'vue'; -import { Notify, QTable } from 'quasar'; +import { Notify, QNotifyUpdateOptions, QTable } from 'quasar'; import { state } from 'src/protos/system_warn_message'; export interface AlarmInfo { id: string; @@ -22,6 +22,10 @@ export interface AlarmInfo { alert_location_id: number; alarmStatus?: number; } +let msgNotify: null | ((props?: QNotifyUpdateOptions | undefined) => void) = + null; +let tip = ''; + export const useLineNetStore = defineStore('lineNet', { state: () => ({ selectedGraphics: null as JlGraphic[] | null, @@ -91,27 +95,24 @@ export const useLineNetStore = defineStore('lineNet', { }); }, setConnectInfo(data: state.WarnLineMessage) { - let tip = ''; + let newTip = ''; data.msgs.forEach((item: state.WarnMessage) => { - if (this.connectInfo) { - this.connectInfo.msgs.forEach((elem) => { - if (elem.lineId === item.lineId) { - if (elem.occRealConned && !item.occRealConned) { - tip = - tip + - `