From ad77bbd18a8e901b332ece37e6bfd3581d4449ed Mon Sep 17 00:00:00 2001 From: zhangqun <179111901@qq.com> Date: Thu, 26 Oct 2023 19:43:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=82=AC=E6=B5=AE=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/index/index.vue | 31 ++++++++++++++++++++++++++++++- vocalldemo/index.html | 1 + 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/src/page/index/index.vue b/src/page/index/index.vue index 1fe7804..a74b7c3 100644 --- a/src/page/index/index.vue +++ b/src/page/index/index.vue @@ -57,6 +57,16 @@ + + + +
@@ -104,7 +114,8 @@ alarmInfo:'', isShowAlarm:false, timer:null, - isLoop:false + isLoop:false, + dialogWarnVisible: false }; }, beforeCreate(){ @@ -166,6 +177,9 @@ window.removeEventListener('onmessageWS', this.getSocketData); }, methods: { + showWarn() { + this.dialogWarnVisible = true; + }, getAlarmInfo(){ getAlarm().then(res =>{ console.log(res) @@ -426,6 +440,21 @@ } } } + .warn_dialog { + .el-dialog__body{ + padding: 0 !important; + } + } + .warn_box{ + position: fixed; + right: 20px; + bottom: 100px; + width:100px; + height:100px; + border-radius:50px; + background: red; + z-index: 999; + }