Переглянути джерело

Revert "新上报websocket不显示"

This reverts commit c7a0e665b25f5a2fdde8ebc7fe52df0a5639da44.
qinhouyu 1 рік тому
батько
коміт
476bb0f5a5
1 змінених файлів з 9 додано та 11 видалено
  1. 9 11
      src/views/forest.vue

+ 9 - 11
src/views/forest.vue

@@ -1589,18 +1589,16 @@
             eventCode: data.eventCode
           }).then((res) => {
             if (res.data != undefined) {
-              if (res.data.eventStatusValue !== "forest_event_status_1") {
-                if (res.data.eventType == 403) {
-                  res.data.picturePath = "../assets/images/土壤墒情监测.png"
-                }
-                //插入到第一条
-                this.eventList.unshift(res.data)
-                // 插入后删除最后一条 保证列表中为10条数据
-                if (this.eventList.length > 9)
-                  this.eventList.splice(10, 1)
-                // 将收到的数据在地图上添加
-                this.getWebSocketEvent(res.data)
+              if(res.data.eventType == 403){
+                res.data.picturePath = "../assets/images/土壤墒情监测.png"
               }
+              //插入到第一条
+              this.eventList.unshift(res.data)
+              // 插入后删除最后一条 保证列表中为10条数据
+              if (this.eventList.length > 9)
+                this.eventList.splice(10, 1)
+              // 将收到的数据在地图上添加
+              this.getWebSocketEvent(res.data)
             }
           })
         }