From d69fe247499eda9d9571d586cb59f063e90701ee Mon Sep 17 00:00:00 2001 From: hbao Date: Wed, 22 Sep 2021 13:10:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=8E=AF=E7=BF=A0?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/homestead/index.js | 9 ++++----- src/views/homestead/index.vue | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/api/homestead/index.js b/src/api/homestead/index.js index 7420f76f..e9c7866f 100644 --- a/src/api/homestead/index.js +++ b/src/api/homestead/index.js @@ -128,11 +128,10 @@ export function currentLocation(query) { } //修改坐标数据同步 -export function coordinatesUpdateGeo(data) { +export function coordinatesUpdateGeo(parentCode) { return request({ - url: '/geo/geo/coordinatesEdit', - method: 'post', - data: data + url: '/geo/geo/latAndLon/'+parentCode, + method: 'get' }) } @@ -150,4 +149,4 @@ export function landRemove(id) { url: '/geo/land/remove/' + id, method: 'get', }) -} \ No newline at end of file +} diff --git a/src/views/homestead/index.vue b/src/views/homestead/index.vue index 6d385edd..abe3d865 100644 --- a/src/views/homestead/index.vue +++ b/src/views/homestead/index.vue @@ -1652,7 +1652,7 @@ export default { // }) this.switchLoad(); this.tGeoOrganization.orgCode = houseInfoList.orgCode; - coordinatesUpdateGeo(this.tGeoOrganization).then((res) => {}); + coordinatesUpdateGeo(this.tGeoOrganization.orgCode).then((res) => {}); } }); }) @@ -1775,7 +1775,7 @@ export default { //列表更新 this.switchLoad(); this.tGeoOrganization.orgCode = landInfoList.orgCode; - coordinatesUpdateGeo(this.tGeoOrganization).then((res) => {}); + coordinatesUpdateGeo(this.tGeoOrganization.orgCode).then((res) => {}); } }); }) From efa9b6348c37e62d8daee28b7ba5f55d755606ce Mon Sep 17 00:00:00 2001 From: hbao Date: Wed, 22 Sep 2021 15:43:01 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=8E=AF=E7=BF=A0?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homestead/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/homestead/index.vue b/src/views/homestead/index.vue index abe3d865..3e3bbe73 100644 --- a/src/views/homestead/index.vue +++ b/src/views/homestead/index.vue @@ -1651,8 +1651,8 @@ export default { // } // }) this.switchLoad(); - this.tGeoOrganization.orgCode = houseInfoList.orgCode; - coordinatesUpdateGeo(this.tGeoOrganization.orgCode).then((res) => {}); + //this.tGeoOrganization.orgCode = houseInfoList.orgCode; + //coordinatesUpdateGeo(this.tGeoOrganization.orgCode).then((res) => {}); } }); }) @@ -1774,8 +1774,8 @@ export default { // } //列表更新 this.switchLoad(); - this.tGeoOrganization.orgCode = landInfoList.orgCode; - coordinatesUpdateGeo(this.tGeoOrganization.orgCode).then((res) => {}); + //this.tGeoOrganization.orgCode = landInfoList.orgCode; + //coordinatesUpdateGeo(this.tGeoOrganization.orgCode).then((res) => {}); } }); })