@ -232,16 +232,15 @@ export default {
watch: {},
async mounted () {
this.getCategoryOpitons();
this.initForm();
},
methods: {
async initForm () {
let { latitude, longitude } = this.$store.state.user;
this.initMap();
if (this.formId && this.formType != "add") {
await this.getInfo();
} else {
@ -249,6 +248,7 @@ export default {
this.fmData.longitude = longitude
}
this.$nextTick(() => {
if (!map) {
this.initMap(this.fmData.latitude, this.fmData.longitude);
@ -271,7 +271,6 @@ export default {
rotation: 45, // 设置地图旋转角度
);
// 监听地图平移结束
map.on("dragend", (e) => {
this.handleMoveCenter(e);
@ -261,6 +261,7 @@ export default {
this.agencyId = this.user.agencyId;
this.getTableData();
@ -268,7 +269,6 @@ export default {
console.log(this.searchData);
this.pageNo = 1;