Parcourir la source

优化环翠保存问题

wulanhaote
hbao il y a 3 ans
Parent
révision
d69fe24749
2 fichiers modifiés avec 6 ajouts et 7 suppressions
  1. +4
    -5
      src/api/homestead/index.js
  2. +2
    -2
      src/views/homestead/index.vue

+ 4
- 5
src/api/homestead/index.js Voir le fichier

@@ -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',
})
}
}

+ 2
- 2
src/views/homestead/index.vue Voir le fichier

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


Chargement…
Annuler
Enregistrer