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 () {