Browse Source

修复社区服务自组织类型显示问题、地图加载问题

V1.0
duanliangtao 2 years ago
parent
commit
ddebd0fb3e
  1. 1441
      src/views/modules/base/virtualResi.vue
  2. 7
      src/views/modules/communityService/fuwuzuzhi/cpts/edit.vue
  3. 2
      src/views/modules/communityService/fuwuzuzhi/index.vue

1441
src/views/modules/base/virtualResi.vue

File diff suppressed because it is too large

7
src/views/modules/communityService/fuwuzuzhi/cpts/edit.vue

@ -232,16 +232,15 @@ export default {
watch: {}, watch: {},
async mounted () { async mounted () {
this.getCategoryOpitons();
this.initForm(); this.initForm();
}, },
methods: { methods: {
async initForm () { async initForm () {
let { latitude, longitude } = this.$store.state.user; let { latitude, longitude } = this.$store.state.user;
this.initMap();
this.getCategoryOpitons();
if (this.formId && this.formType != "add") { if (this.formId && this.formType != "add") {
await this.getInfo(); await this.getInfo();
} else { } else {
@ -249,6 +248,7 @@ export default {
this.fmData.longitude = longitude this.fmData.longitude = longitude
} }
this.$nextTick(() => { this.$nextTick(() => {
if (!map) { if (!map) {
this.initMap(this.fmData.latitude, this.fmData.longitude); this.initMap(this.fmData.latitude, this.fmData.longitude);
@ -271,7 +271,6 @@ export default {
rotation: 45, // rotation: 45, //
} }
); );
// //
map.on("dragend", (e) => { map.on("dragend", (e) => {
this.handleMoveCenter(e); this.handleMoveCenter(e);

2
src/views/modules/communityService/fuwuzuzhi/index.vue

@ -261,6 +261,7 @@ export default {
this.agencyId = this.user.agencyId; this.agencyId = this.user.agencyId;
this.getCategoryOpitons();
this.getTableData(); this.getTableData();
}, },
methods: { methods: {
@ -268,7 +269,6 @@ export default {
console.log(this.searchData); console.log(this.searchData);
this.pageNo = 1; this.pageNo = 1;
this.getCategoryOpitons();
this.getTableData(); this.getTableData();
}, },

Loading…
Cancel
Save