From bac434ade2bbe49d285aa699b9c94168a415520d Mon Sep 17 00:00:00 2001 From: yangfuda <945208611@qq.com> Date: Thu, 11 Sep 2025 11:07:16 +0800 Subject: [PATCH] =?UTF-8?q?TASK=2045751=20=E5=9C=B0=E5=9D=97=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=92=8C=E5=9C=B0=E5=9D=97=E7=BB=8F=E8=90=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/resource/land/index.vue | 32 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/views/resource/land/index.vue b/src/views/resource/land/index.vue index 7e488b1..3cfc725 100644 --- a/src/views/resource/land/index.vue +++ b/src/views/resource/land/index.vue @@ -779,22 +779,20 @@ export default { }, /** 地图修改按钮操作 */ handleMap(row) { - getLandDetail(row.fid).then((theGeomRes) => { - this.mapTheGeomId = theGeomRes.data; - getInfoByImportCode(row.importCode).then((res) => { - let insertCode = res.data; - if (insertCode != null) { - this.tGeoOrganizationLat = insertCode.latitude; - this.tGeoOrganizationLng = insertCode.longitude; - } - const tableRow = { importCode: row.importCode }; - listLandQuery(tableRow).then(response => { - this.openMap = true; - this.title = "修改地图"; - setTimeout(() => { - this.pointDarw(response.rows); - }, 500); - }); + this.mapTheGeomId = row; + getInfoByImportCode(row.importCode).then((res) => { + let insertCode = res.data; + if (insertCode != null) { + this.tGeoOrganizationLat = insertCode.latitude; + this.tGeoOrganizationLng = insertCode.longitude; + } + const tableRow = { importCode: row.importCode }; + listLandQuery(tableRow).then(response => { + this.openMap = true; + this.title = "修改地图"; + setTimeout(() => { + this.pointDarw(response.rows); + }, 500); }); }); }, @@ -803,6 +801,8 @@ export default { this.diglogStatus = false; if(this.drawInsert !=null && this.drawInsert !=""){ this.mapTheGeomId.theGeom = JSON.stringify(this.drawInsert); + }else{ + this.mapTheGeomId.theGeom = this.mapTheGeomId.theGeomText } let sysGis = { tableName: 't_resource_land',priId: 'fid',id: this.mapTheGeomId.fid,theGeom: this.mapTheGeomId.theGeom }; if (this.mapTheGeomId != null) {