diff --git a/src/views/next/screen-content-map/index.vue b/src/views/next/screen-content-map/index.vue index 97fb954..6f2856c 100644 --- a/src/views/next/screen-content-map/index.vue +++ b/src/views/next/screen-content-map/index.vue @@ -117,8 +117,8 @@ export default { { label: '房屋', value: 0 }, { label: '议题', value: 0 }, { label: '项目', value: 0 }, - { label: '网格员', value: 0 }, - { label: '党员', value: 0 } + { label: '已结案', value: 0 }, + // { label: '党员', value: 0 } ], mapTabList: [], currentTab: '', @@ -257,9 +257,11 @@ export default { } getPageGridDataToal({ ...parm }).then(({ data: res }) => { // 议题 项目 - const { issuseCount, itemCount } = res + const { issuseCount, itemCount,itemOverCount } = res numAnimation(this.statisticsList[2].value, issuseCount, this.statisticsList[2], 'value') numAnimation(this.statisticsList[3].value, itemCount, this.statisticsList[3], 'value') + numAnimation(this.statisticsList[4].value, itemOverCount, this.statisticsList[4], 'value') + }).catch(err => { console.log(err); }) @@ -272,13 +274,13 @@ export default { } getMapStatistics(params).then(({ data: res }) => { console.log('获取地图中心上方统计数2', res) - const { resiNum, houseNum, communityNum, gridNum, gridUserNum, partyMemberNum } = res + const { resiNum, houseNum, communityNum, gridNum, gridUserNum, partyMemberNum,itemOverCount } = res // numAnimation(this.statisticsList[0].value, resiNum, this.statisticsList[0], 'value') // numAnimation(this.statisticsList[1].value, houseNum, this.statisticsList[1], 'value') // numAnimation(this.statisticsList[2].value, communityNum, this.statisticsList[2], 'value') // numAnimation(this.statisticsList[3].value, gridNum, this.statisticsList[3], 'value') - numAnimation(this.statisticsList[4].value, gridUserNum, this.statisticsList[4], 'value') - numAnimation(this.statisticsList[5].value, partyMemberNum, this.statisticsList[5], 'value') + numAnimation(this.statisticsList[4].value, itemOverCount, this.statisticsList[4], 'value') + // numAnimation(this.statisticsList[5].value, partyMemberNum, this.statisticsList[5], 'value') }).catch(err => { console.error('获取地图中心上方统计数', err) }) @@ -289,13 +291,13 @@ export default { getCommunityDetail(params).then(({ data: res }) => { console.log('获取地图中心上方统计数1', res) // resiNum - const { resiNum, houseNum, gridNum, gridUserNum, partyMemberNum } = res + const { resiNum, houseNum, gridNum, gridUserNum, partyMemberNum,itemOverCount } = res // numAnimation(this.statisticsList[0].value, resiNum, this.statisticsList[0], 'value') // numAnimation(this.statisticsList[1].value, houseNum, this.statisticsList[1], 'value') // numAnimation(this.statisticsList[2].value, 1, this.statisticsList[2], 'value') // numAnimation(this.statisticsList[3].value, gridNum, this.statisticsList[3], 'value') - numAnimation(this.statisticsList[4].value, gridUserNum, this.statisticsList[4], 'value') - numAnimation(this.statisticsList[5].value, partyMemberNum, this.statisticsList[5], 'value') + numAnimation(this.statisticsList[4].value, itemOverCount, this.statisticsList[4], 'value') + // numAnimation(this.statisticsList[5].value, partyMemberNum, this.statisticsList[5], 'value') }).catch(err => { console.error('获取地图中心上方统计数', err) }) @@ -308,10 +310,11 @@ export default { }, // 社区下钻到网格 drowDownToGrid({ id, communityId, center,ids }) { + console.log(ids,'下钻产品Id'); this.mapBack = true this.getGridList(id) this.set_mapLevel('grid') - this.set_communityId(ids || '0') + this.set_communityId(ids) this.getMapStatistics() this.getResidentClassifyStatistics() this.getHourseClassifyStatistics()