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; + }