Browse Source

云图页面警报图标

wang_xy 2 năm trước cách đây
mục cha
commit
ebe1d02b1d
1 tập tin đã thay đổi với 6 bổ sung3 xóa
  1. 6 3
      src/components/vBottomMenu.vue

+ 6 - 3
src/components/vBottomMenu.vue

@@ -203,13 +203,13 @@
       </el-popover>
 
       <!-- 警报铃 必须放在这,放在别处不好使 -->
-      <div class="bell" v-if="eventWarn" @click="updateAlert">
+      <div class="bell" v-if="eventWarn" @click="updateAlertFalse">
         <div class="dot"></div>
         <div class="pulse"></div>
         <div class="pulse-big"></div>
       </div>
       <el-badge type="primary">
-        <el-button size="small" icon="el-icon-bell" @click="updateAlert">警报</el-button>
+        <el-button size="small" icon="el-icon-bell" @click="updateAlertFalse">警报</el-button>
       </el-badge>
       <el-badge type="warning">
         <el-button size="small" icon="el-icon-refresh-right" @click="refresh">刷新</el-button>
@@ -746,7 +746,10 @@
       },
       //标记警报
       updateAlert() {
-        this.eventWarn = !this.eventWarn;
+        this.eventWarn = true;
+      },
+      updateAlertFalse(){
+        this.eventWarn = false;
         this.$emit('stopAudio');
       }
     }