diff --git a/project/dv/apps/AppPdDv.vue b/project/dv/apps/AppPdDv.vue index b5e431cc..0db1fbcd 100644 --- a/project/dv/apps/AppPdDv.vue +++ b/project/dv/apps/AppPdDv.vue @@ -40,28 +40,28 @@

居民群

- 9 + {{ groupNumber.groupSum }}

群成员

- 9 + {{ groupNumber.totalSum }}

昨日新增

- 9 + {{ groupNumber.increaseSum }}

昨日流失

- 9 + {{ groupNumber.decreaseSum }}
@@ -72,16 +72,16 @@
标签人群
-

居民群

- 245 +

高龄老人

+ {{ tagInfo.elderlyPeople }}
-

群成员

- 245 +

精神病人

+ {{ tagInfo.mentalIllness }}
-

昨日新增

- 245 +

贫困居民

+ {{ tagInfo.poorResidents }}
@@ -249,6 +249,8 @@ gridList: [], userChatNumber: {}, residentInfo: {}, + tagInfo: {}, + groupNumber: {}, groupChatNumber: {} } }, @@ -260,10 +262,6 @@ mounted () { this.$nextTick(() => { - setTimeout(() => { - // this.initLineChart('.chart2') - }, 500) - if (document.querySelector('.AiDvWrapper .viewPanel')) { document.querySelector('.AiDvWrapper .viewPanel').style.backgroundImage = 'url(https://cdn.cunwuyun.cn/dvcp/dv/pddv/bg.png)' } @@ -288,12 +286,17 @@ }) this.instance.post(`/app/wxgroupstatistic/getGroupNumber`).then(res => { if (res.code === 0) { - + this.groupNumber = res.data['居民群统计'] + this.initLineChart('.chart2', { + x: res.data['群成员数'].map(v => v.month), + value: res.data['群成员数'].map(v => v.totalNumber), + name: '居民群' + }) } }) this.instance.post(`/app/wxgroupstatistic/getTagNumber`).then(res => { if (res.code === 0) { - + this.tagInfo = res.data } }) this.instance.post(`/app/wxgroupstatistic/getUserChatNumber`).then(res => {