Ver código fonte

数据同步

wulanhaote
hbao 4 anos atrás
pai
commit
bb35b42b48
2 arquivos alterados com 20 adições e 0 exclusões
  1. +8
    -0
      src/api/homestead/index.js
  2. +12
    -0
      src/views/homestead/index.vue

+ 8
- 0
src/api/homestead/index.js Ver arquivo

@@ -127,3 +127,11 @@ export function currentLocation(query) {
})
}

//修改坐标数据同步
export function coordinatesUpdateGeo(data) {
return request({
url: '/geo/geo/coordinatesEdit',
method: 'post',
data: data
})
}

+ 12
- 0
src/views/homestead/index.vue Ver arquivo

@@ -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) => {

});
}
});
})


Carregando…
Cancelar
Salvar