From bb35b42b4858956878c46d73ef54c1559d410b19 Mon Sep 17 00:00:00 2001 From: hbao Date: Thu, 5 Aug 2021 14:32:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/homestead/index.js | 8 ++++++++ src/views/homestead/index.vue | 12 ++++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/api/homestead/index.js b/src/api/homestead/index.js index 65b847e0..6c4c3e48 100644 --- a/src/api/homestead/index.js +++ b/src/api/homestead/index.js @@ -127,3 +127,11 @@ export function currentLocation(query) { }) } +//修改坐标数据同步 +export function coordinatesUpdateGeo(data) { + return request({ + url: '/geo/geo/coordinatesEdit', + method: 'post', + data: data + }) +} diff --git a/src/views/homestead/index.vue b/src/views/homestead/index.vue index bce72119..ddbb7f9a 100644 --- a/src/views/homestead/index.vue +++ b/src/views/homestead/index.vue @@ -952,6 +952,7 @@ import { getLand, getHouse, currentLocation, + coordinatesUpdateGeo, } from "@/api/homestead/index"; export default { @@ -976,6 +977,9 @@ export default { value: "value", children: "children", }, + tGeoOrganization:{ + orgCode: "" + }, // 待租列表显示 ishcBotton: false, // 待租列表 类型 0 农房 1 农地 @@ -1409,6 +1413,10 @@ export default { // } // }) this.switchLoad(); + this.tGeoOrganization.orgCode = houseInfoList.orgCode; + coordinatesUpdateGeo(this.tGeoOrganization).then((res) => { + + }); } }); }) @@ -1523,6 +1531,10 @@ export default { // } //列表更新 this.switchLoad(); + this.tGeoOrganization.orgCode = landInfoList.orgCode; + coordinatesUpdateGeo(this.tGeoOrganization).then((res) => { + + }); } }); })