|
@@ -596,10 +596,21 @@ const getDetailsData = (id) => {
|
|
|
|
|
|
// 添加经纬度列表
|
|
|
const updatePointList = () => {
|
|
|
- const { geometryArr, area } = authenticMap.getAreaGeometry();
|
|
|
- const lastItem = geometryArr[geometryArr.length - 1];
|
|
|
+ let geometryArrCopy, areaCopy
|
|
|
+ if(mapData.isEditArea){
|
|
|
+ //编辑修改时查所有地块点位
|
|
|
+ const { geometryArr, area } = authenticMap.getAreaGeometry();
|
|
|
+ geometryArrCopy = geometryArr
|
|
|
+ areaCopy = area
|
|
|
+ }else{
|
|
|
+ //新建查询当前点位的地块数据
|
|
|
+ const { geometryArr, area } = authenticMap.getSinglePoint();
|
|
|
+ geometryArrCopy = geometryArr
|
|
|
+ areaCopy = area
|
|
|
+ }
|
|
|
+ const lastItem = geometryArrCopy[geometryArrCopy.length - 1];
|
|
|
formInline.geom = lastItem.featureWkt;
|
|
|
- formInline.mu = area + "亩";
|
|
|
+ formInline.mu = areaCopy + "亩";
|
|
|
let result = parseMultiPolygon(lastItem.featureWkt);
|
|
|
result.pop();
|
|
|
pointList.value = result;
|