From d69fe247499eda9d9571d586cb59f063e90701ee Mon Sep 17 00:00:00 2001 From: hbao Date: Wed, 22 Sep 2021 13:10:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=8E=AF=E7=BF=A0=E4=BF=9D?= =?UTF-8?q?=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) => {}); } }); })