From 830288e1072a120aa0a53a24aed3420088305773 Mon Sep 17 00:00:00 2001 From: liub Date: Wed, 24 Dec 2025 14:47:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A6=96=E9=A1=B5=E8=93=9D?= =?UTF-8?q?=E7=89=99=E8=BF=9E=E6=8E=A5=E6=96=AD=E5=BC=80=E6=97=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=8A=B6=E6=80=81=EF=BC=8C=E4=BF=AE=E5=A4=8D670=20SOS?= =?UTF-8?q?=E6=8A=A5=E8=AD=A6=E6=97=B6=E7=BA=A2=E8=89=B2=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/670/HBY670.vue | 19 +++++++++--- pages/common/index/index.vue | 60 +++++++++++++++++++++++------------- utils/BleReceive.js | 19 +++++++++--- 3 files changed, 68 insertions(+), 30 deletions(-) diff --git a/pages/670/HBY670.vue b/pages/670/HBY670.vue index d63d587..6c6f871 100644 --- a/pages/670/HBY670.vue +++ b/pages/670/HBY670.vue @@ -90,10 +90,10 @@ - 设备强制报警中! - + {{Status.staticWarn.time}}s @@ -890,7 +890,7 @@ } catch (error) { - console.log("无法解析此消息", error); + console.error("无法解析此消息", payload); } }); resolve(); @@ -973,6 +973,9 @@ if ("sta_SOSGrade" in json) { let sosText = json.sta_SOSGrade === 2 ? 'rb' : json.sta_SOSGrade === 1 ? "sg" : "close"; receiveData.SOS = sosText; + + receiveData.qzwarn=sosText==='sg'; + } if ("sta_ShakeBit" in json) { @@ -1056,9 +1059,16 @@ if (this.formData.imei) { this.initMQ(); } + let msgs=[]; + if(this.formData.qzwarn){ + msgs.push("设备强制报警中"); + } if (this.formData.staticWarn) { //有静止报警 + msgs.push("设备静止报警中"); + } + if(msgs.length>0){ this.showPop({ - message: "设备静止报警中", + message: msgs.join(";"), iconUrl: "/static/images/6155/DeviceDetail/warnning.png", borderColor: "#e034344d", buttonBgColor: "#E03434", @@ -1066,6 +1076,7 @@ clickEvt: "staticWarn" }); } + this.setBleFormData(); }, diff --git a/pages/common/index/index.vue b/pages/common/index/index.vue index 9847586..7e0355b 100644 --- a/pages/common/index/index.vue +++ b/pages/common/index/index.vue @@ -57,7 +57,7 @@ 报警中 - + {{item.bleStatu?'已连接':'未连接'}} @@ -69,7 +69,7 @@ -