@@ -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",
@@ -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'