diff --git a/src/pages/LineMonitorPage.vue b/src/pages/LineMonitorPage.vue index 35f7174..64093d5 100644 --- a/src/pages/LineMonitorPage.vue +++ b/src/pages/LineMonitorPage.vue @@ -96,10 +96,28 @@ watch( (val) => { if (val.length) { centerFaultDevice(); - val.forEach((info) => { - alarmInfoList.push(info); - }); - faultInfo.value = true; + const lineState = lineNetStore.connectInfo?.msgs.find( + (msg) => msg.lineId == lineId + ); + // console.log(lineState, 'line'); + if (lineState?.atsWarnShowCounter) { + val.forEach((info) => { + alarmInfoList.push(info); + }); + faultInfo.value = true; + } + } + } +); + +watch( + () => lineNetStore.connectInfo, + (val) => { + if (val?.msgs) { + const lineState = val.msgs.find((msg) => msg.lineId == lineId); + if (!lineState?.atsWarnShowCounter) { + faultInfo.value = false; + } } } );