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

Loading…
Cancel
Save