累加bug
This commit is contained in:
@@ -14,17 +14,17 @@
|
||||
</div>
|
||||
|
||||
<div class="items">
|
||||
<span class="items2">{{ chartsList.total }}</span>
|
||||
<span class="items2">{{ counts }}</span>
|
||||
<span>群成员总数</span>
|
||||
</div>
|
||||
|
||||
<div class="items">
|
||||
<span class="items3">{{ chartsList.increase }}</span>
|
||||
<span class="items3">{{ todayList.increase }}</span>
|
||||
<span>今日入群</span>
|
||||
</div>
|
||||
|
||||
<div class="items">
|
||||
<span class="items4">{{ chartsList.decrease }}</span>
|
||||
<span class="items4">{{ todayList.decrease }}</span>
|
||||
<span>今日退群</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -183,14 +183,14 @@ export default {
|
||||
current: 1,
|
||||
keyword: '',
|
||||
data: [],
|
||||
|
||||
page: { current: 1, size: 10, total: 0 },
|
||||
search: { name: '' },
|
||||
list: [],
|
||||
weekList: [],
|
||||
groupSum: '',
|
||||
chartsList: [],
|
||||
datass: [],
|
||||
todayList: [],
|
||||
nums: '',
|
||||
counts: '',
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -259,23 +259,27 @@ export default {
|
||||
|
||||
// 居民群统计
|
||||
getEchart1() {
|
||||
console.log(1)
|
||||
this.$http.post(`/app/wxcp/wxgroup/groupStatistic`).then((res) => {
|
||||
if (res.code === 0) {
|
||||
this.initEcharts1(res.data.list)
|
||||
this.weekList = res.data.list
|
||||
this.groupSum = res.data.groupSum
|
||||
this.chartsList = res.data.today
|
||||
this.todayList = res.data.today
|
||||
this.counts = Object.values(this.weekList)
|
||||
.filter((item) => item.total)
|
||||
.reduce((v, item) => (v += item.total * 1), 0)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 居民群统计
|
||||
// 居民统计
|
||||
getEchart2() {
|
||||
console.log(2)
|
||||
this.$http.post(`/app/appresident/queryCustInfoByAreaId?areaId=${this.user.areaId}`).then((res) => {
|
||||
if (res.code === 0) {
|
||||
this.initEcharts2(res.data['年龄层次'])
|
||||
this.nums = res.data['总人数']
|
||||
this.$nextTick(() => {
|
||||
this.nums = res.data['总人数']
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user