diff --git a/src/views/modules/visual/communityParty/community.vue b/src/views/modules/visual/communityParty/community.vue index e3e9fe846..aa3d248c8 100644 --- a/src/views/modules/visual/communityParty/community.vue +++ b/src/views/modules/visual/communityParty/community.vue @@ -247,8 +247,8 @@ export default { await this.getAgencyList() this.loadUnit() this.getList(this.agencyId) - this.getCateCount() - this.getCateType() + this.getCateCount(this.agencyId) + this.getCateType(this.agencyId) await this.getWorkUserInfo() await this.getMapUnitList(this.agencyId) @@ -340,12 +340,12 @@ export default { }) return arr }, - async getCateCount () { + async getCateCount (agencyId) { const url = "/heart/icpartyactivity/statistics" // const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/list" let params = { - agencyId: this.agencyId + agencyId } const { data, code, msg } = await requestPost(url, params) @@ -356,12 +356,12 @@ export default { this.$message.error(msg) } }, - async getCateType () { + async getCateType (agencyId) { const url = "/heart/icpartyunit/typestatistics" // const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/list" let params = { - agencyId: this.agencyId + agencyId } const { data, code, msg } = await requestPost(url, params) @@ -422,6 +422,8 @@ export default { const orgType = _arr[1] !== 'grid' ? 'agency': 'grid' this.getList(_arr[0]) this.getMapUnitList(_arr[0]) + this.getCateCount(_arr[0]) + this.getCateType(_arr[0]) } },