From ebd9f0bd44a76a0fba4f82f799b349cdab2b21ca Mon Sep 17 00:00:00 2001
From: yangyin <1850366751@qq.com>
Date: 星期二, 26 十二月 2023 14:52:26 +0800
Subject: [PATCH] fix: 修改监测值

---
 map/index.js |   17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/map/index.js b/map/index.js
index 265129b..e6090b8 100644
--- a/map/index.js
+++ b/map/index.js
@@ -583,21 +583,14 @@
     })
     console.log(stationLastRecord,id,528)
     if(stationLastRecord.LastRecordList==null){
-
+      return
     }
-    if(stationLastRecord.LastRecordList!=null){
-        for (let j = 0; j < stationLastRecord.LastRecordList.length; j++) {
-          let record = stationLastRecord.LastRecordList[j];
-        console.log(record.DataValue,591)
-        }
-      }
     // console.log(markers,540)
     for (var i = 0; i < markers.length; i++) {
       console.log(markers[i].markerInfo,598)
-      if (markers[i].markerInfo.ObjectType == '娉电珯' && id == markers[i].StationID) {
-
+      if ( id == markers[i].StationID) {
         markerTipInfo = markers[i];
-        markerTipInfo.markerInfo.Records = Record
+        markerTipInfo.markerInfo.Records = stationLastRecord.LastRecordList
         that.setData({
           markerTipInfo: markerTipInfo
         })
@@ -605,8 +598,8 @@
       } else if (id == markers[i].id) {
         // console.log("ddd")
         markerTipInfo = markers[i];
-        //  console.log(markerTipInfo)
-        var ids = markerTipInfo.markerInfo.ObjectID
+         console.log(markerTipInfo)
+        var ids = markerTipInfo.markerInfo.StationID
         // console.log(ids,520)
         //console.log(markerTipInfo)
         that.refreshMonitorRecords(ids)

--
Gitblit v1.9.3