From a3d6c5e534e7a9e8d1c9716feb6a93be6bad1241 Mon Sep 17 00:00:00 2001 From: Cool <747682928@qq.com> Date: Fri, 5 Jul 2024 17:29:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/HospitalView.vue | 14 +++++--------- src/views/User.vue | 3 ++- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/views/HospitalView.vue b/src/views/HospitalView.vue index 78b6876..6747f12 100644 --- a/src/views/HospitalView.vue +++ b/src/views/HospitalView.vue @@ -3,7 +3,7 @@ -
+
@@ -19,7 +19,7 @@ height="250" >
- ! + ! 医疗出警 @@ -82,17 +82,13 @@ export default { }; socket.onmessage = function (message) { console.log(message.data); - if (message.data == "二级") { - that.isShow = true; - that.color = "#CCCC00"; - that.issues(); - that.solve(); - } else if (message.data == "一级") { + if (message.data == "一级") { that.issues(); that.isShow = true; that.color = "red"; - that.solve(); that.alarmSound(); + }else{ + that.color = "green"; } socket.onerror = function () { diff --git a/src/views/User.vue b/src/views/User.vue index f04afa5..3b85edb 100644 --- a/src/views/User.vue +++ b/src/views/User.vue @@ -78,7 +78,6 @@ export default { that.isShow = true; that.color = "#CCCC00"; that.issues(); - that.solve(); } else if (message.data == "一级") { that.isShow = true; that.color = "red"; @@ -88,6 +87,8 @@ export default { }, 500); that.issues(); + }else if(message.data == "三级"){ + that.color = "green"; } socket.onerror = function () {