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 @@
-