Browse Source

修复党群bug

feature
dai 4 years ago
parent
commit
9aa3b18d50
  1. 12
      src/views/modules/communityService/dqfwzx/index.vue

12
src/views/modules/communityService/dqfwzx/index.vue

@ -191,9 +191,7 @@ export default {
}, },
async mounted() { async mounted() {
await this.loadAgency(); await this.loadAgency();
await this.getTableData(); // await this.getTableData();
this.initMap();
this.setMap();
}, },
methods: { methods: {
// init // init
@ -324,6 +322,7 @@ export default {
}, },
async getTableData() { async getTableData() {
const oldLen = this.tableData.length;
const url = "/gov/org/icpartyservicecenter/partyservicecenterlist"; const url = "/gov/org/icpartyservicecenter/partyservicecenterlist";
const { data, code, msg } = await requestPost(url, { const { data, code, msg } = await requestPost(url, {
orgId: this.agencyId, orgId: this.agencyId,
@ -333,7 +332,12 @@ export default {
console.log("列表请求成功!!!!!!!!!!!!!!"); console.log("列表请求成功!!!!!!!!!!!!!!");
this.tableData = data; this.tableData = data;
} else {
if (data.length > 0 && oldLen == 0) {
await nextTick(100);
this.initMap();
this.setMap();
}
} }
}, },

Loading…
Cancel
Save