Ver Fonte

feat:添加井冈基地点位

wangsisi há 2 semanas atrás
pai
commit
2b5f4a1d31
1 ficheiros alterados com 27 adições e 2 exclusões
  1. 27 2
      src/views/warningHome/map/mockFarmLayer.js

+ 27 - 2
src/views/warningHome/map/mockFarmLayer.js

@@ -46,6 +46,28 @@ class MockFarmLayer {
             that.initLayer(kmap)
             VE_API.mini_farm.weatherRiskVirtualFarmList().then(res => {
                 if(res.code ===0){
+                    const lby = {}
+                    const jgjd = {
+                        disease:'',
+                        grow:'花苞',
+                        img:'https://birdseye-img.sysuimars.com/birdseye-look-mini/img_crop/bch/ch/cropped_DJI_20240707184352_0041_V_9.jpg',
+                        name:'井冈基地',
+                        mapId:2,
+                        nodeType:"mock_farm_data",
+                        mockFarmId:88866,
+                        cloudFilename:'',
+                        dic:{
+                            "病虫异常": 0,
+                            "物候期": "果期",
+                            "比例": 91,
+                            "生育期": "膨果期",
+                            "生长异常": 1
+                        },
+                        targetSampleId:96774,
+                        wkt:'POINT(113.5081595 23.5320866)'
+                    }
+                    res.data.push(jgjd)
+                    console.log('res.data',res.data);
                     that.setData(res.data)
                 }
             })
@@ -96,6 +118,9 @@ class MockFarmLayer {
                 that.setProperties(feature,f)
                 let text = "";
                 let fontColor = "#ffffff"
+                if(name==='井冈基地'){
+                    console.log('井冈基地',grow);
+                }
                 if (disease) {
                     text = disease;
                     styles.push(that.textBgStyle("#EFEEEE","#EFEEEE"));
@@ -106,9 +131,9 @@ class MockFarmLayer {
                         text = grow;
                         fontColor = "#B6B6B6"
                     }else{
-                        styles.push(that.textBgStyle("#FFFF00","#FFA500"));
+                        styles.push(that.textBgStyle("#fff","#fff"));
                         text = grow;
-                        fontColor = "#c1c1c1"
+                        fontColor = "#BBBBBB"
                     }
 
                 } else if (phenology) {