Browse Source

Merge branch 'dev-shuju' into test

shibei_prod
13176889840 4 years ago
parent
commit
cd3987ad91
  1. 14
      src/views/modules/visual/communityParty/community.vue

14
src/views/modules/visual/communityParty/community.vue

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

Loading…
Cancel
Save