Ver Fonte

fix:修改全部点位不出来bug

wangsisi há 2 semanas atrás
pai
commit
3d1eee79b3

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

@@ -111,7 +111,7 @@ export const oneLine = {
                         yAxis: '',
                         symbolOffset: [0, "-50%"],
                         label: {
-                            offset: [0, -15],
+                            offset: [0, -12],
                             backgroundColor: "#FF7219",
                             padding: [0, 8, 0, 8],
                             color: "#fff",

+ 2 - 1
src/views/home/map/samplePointLayer.js

@@ -97,7 +97,8 @@ class SamplePointLayer {
     if(regionId===0){
         selectAll = 1
     }
-    VE_API.variety.pointList({farmId,regionId,selectAll}).then(({data})=>{
+    const areaId = selectAll?undefined:regionId
+    VE_API.variety.pointList({farmId,regionId:areaId,selectAll}).then(({data})=>{
       let features = []
       for(let item of data){
         item.iconName='defalut'