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..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).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).then((res) => {}); + //this.tGeoOrganization.orgCode = landInfoList.orgCode; + //coordinatesUpdateGeo(this.tGeoOrganization.orgCode).then((res) => {}); } }); })