浏览代码

百色果园信息

shuhao 2 天之前
父节点
当前提交
d7a1023d56

+ 1 - 1
src/components/charts/options/barOption.js

@@ -192,7 +192,7 @@ const styleName3 = {
       },
     },
     {
-      data: [16, 16, 16, 0],
+      data: [0, 0, 0, 0],
       type: "bar",
       barWidth: 26,
       stack: "total",

+ 9 - 9
src/views/home/components/homePage.vue

@@ -105,20 +105,20 @@ import {useStore} from "vuex";
 let store = useStore()
 
 // 物候调节
-const phenologyXData = ["春梢老熟","花芽萌动","啃食虫害"]
+const phenologyXData = ["春梢老熟","花芽萌动","小果膨大"]
 const phenologyYData = [{
-  startNum:0,
-  endNum:16,
+  startNum:85,
+  endNum:85,
   startColor:"#c6ab6b",
   endColor:"#4e442e"
 },{
-  startNum:0,
-  endNum:20,
+  startNum:13,
+  endNum:13,
   startColor:"#c6ab6b",
   endColor:"#4e442e"
 },{
-  startNum:0,
-  endNum:12,
+  startNum:32,
+  endNum:32,
   startColor:"#c6ab6b",
   endColor:"#4e442e"
 }]
@@ -127,12 +127,12 @@ const reportData = {
   rates:[
     {
         "increase": null,
-        "name": "春梢老熟",
+        "name": "春梢老熟",
         "rate": 85
     },
     {
         "increase": null,
-        "name": "花芽萌动",
+        "name": "炭疽病害",
         "rate": 10.7
     },
     {

+ 3 - 3
src/views/warningHome/map/mockFarmLayer.js

@@ -90,7 +90,7 @@ class MockFarmLayer {
                 let f = that.selectFeature(feature)
                 let disease = f.get("disease");
                 let grow = f.get("grow");
-                let phenology = "褪绿";
+                let phenology = f.get("id") % 5 == 0 ? "花芽萌动" : "春梢老熟";
                 let img = f.get("img") || "https://birdseye-img.sysuimars.com/birdseye-look-mini/img_crop/%E8%80%81%E7%86%9F.png";
                 let name = f.get("name");
                 let id = f.get("mapId");
@@ -242,13 +242,13 @@ class MockFarmLayer {
             cloudStyle = new Style({
                 image: new Photo({
                     src: cloudUrl,
-                    radius: 20,
+                    radius: 14,
                     kind:"anchored",
                     shadow: 5,
                     crop: true,
                     displacement: [2.5, 20-4],
                     stroke: new Stroke({
-                        width: 3,
+                        width: 2,
                         color: "#fff",
                     }),
                     onload: function () {