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