Browse Source

fix:组织修改,地图不好用的问题

V1.0
wxz 2 years ago
parent
commit
f9222c9c94
  1. 14
      src/views/modules/base/organization/organization.vue

14
src/views/modules/base/organization/organization.vue

@ -2460,7 +2460,7 @@ export default {
this.getAgencyList();
this.getDepartmentList();
this.getGridList();
this.agencyPeo();
// this.agencyPeo();
} else {
this.$message.error(msg);
}
@ -2485,7 +2485,7 @@ export default {
this.getAgencyList();
this.getDepartmentList();
this.getGridList();
this.agencyPeo();
// this.agencyPeo();
} else {
this.$message.error(msg);
}
@ -2513,7 +2513,7 @@ export default {
this.getAgencyList();
this.getDepartmentList();
this.getGridList();
this.agencyPeo();
// this.agencyPeo();
} else {
this.$message.error(msg);
}
@ -2568,7 +2568,7 @@ export default {
//
map.on("dragend", (e) => {
handleMoveCenter(e);
handleMoveCenter(e, this);
});
// map.setCenter(latitude, longitude);
@ -2592,12 +2592,16 @@ export default {
// ]);
// }
function handleMoveCenter (e) {
function handleMoveCenter (e, env) {
//
const { lat, lng } = map.getCenter();
// const lat = lat;
// const lng = lng;
map.setMarker(lat, lng);
// thisthisenv
env.latitude = lat;
env.longitude = lng;
// let { msg, data } = await map.getAddress(lat, lng);
// if (msg == "success") {

Loading…
Cancel
Save