This commit is contained in:
yanran200730
2022-07-22 13:45:03 +08:00
parent 34afcbf84e
commit 156bdba217

View File

@@ -40,28 +40,28 @@
<div class="item-top__item"> <div class="item-top__item">
<h2>居民群</h2> <h2>居民群</h2>
<div class="bottom"> <div class="bottom">
<span>9</span> <span>{{ groupNumber.groupSum }}</span>
<img src="https://cdn.cunwuyun.cn/dvcp/dv/pddv/bottom.png" /> <img src="https://cdn.cunwuyun.cn/dvcp/dv/pddv/bottom.png" />
</div> </div>
</div> </div>
<div class="item-top__item"> <div class="item-top__item">
<h2>群成员</h2> <h2>群成员</h2>
<div class="bottom"> <div class="bottom">
<span>9</span> <span>{{ groupNumber.totalSum }}</span>
<img src="https://cdn.cunwuyun.cn/dvcp/dv/pddv/bottom.png" /> <img src="https://cdn.cunwuyun.cn/dvcp/dv/pddv/bottom.png" />
</div> </div>
</div> </div>
<div class="item-top__item"> <div class="item-top__item">
<h2>昨日新增</h2> <h2>昨日新增</h2>
<div class="bottom"> <div class="bottom">
<span>9</span> <span>{{ groupNumber.increaseSum }}</span>
<img src="https://cdn.cunwuyun.cn/dvcp/dv/pddv/bottom.png" /> <img src="https://cdn.cunwuyun.cn/dvcp/dv/pddv/bottom.png" />
</div> </div>
</div> </div>
<div class="item-top__item"> <div class="item-top__item">
<h2>昨日流失</h2> <h2>昨日流失</h2>
<div class="bottom"> <div class="bottom">
<span>9</span> <span>{{ groupNumber.decreaseSum }}</span>
<img src="https://cdn.cunwuyun.cn/dvcp/dv/pddv/bottom.png" /> <img src="https://cdn.cunwuyun.cn/dvcp/dv/pddv/bottom.png" />
</div> </div>
</div> </div>
@@ -72,16 +72,16 @@
<div class="title">标签人群</div> <div class="title">标签人群</div>
<div class="item-bottom"> <div class="item-bottom">
<div class="item-bottom__item"> <div class="item-bottom__item">
<h2>居民群</h2> <h2>高龄老人</h2>
<span>245</span> <span>{{ tagInfo.elderlyPeople }}</span>
</div> </div>
<div class="item-bottom__item"> <div class="item-bottom__item">
<h2>群成员</h2> <h2>精神病人</h2>
<span>245</span> <span>{{ tagInfo.mentalIllness }}</span>
</div> </div>
<div class="item-bottom__item"> <div class="item-bottom__item">
<h2>昨日新增</h2> <h2>贫困居民</h2>
<span>245</span> <span>{{ tagInfo.poorResidents }}</span>
</div> </div>
</div> </div>
</div> </div>
@@ -249,6 +249,8 @@
gridList: [], gridList: [],
userChatNumber: {}, userChatNumber: {},
residentInfo: {}, residentInfo: {},
tagInfo: {},
groupNumber: {},
groupChatNumber: {} groupChatNumber: {}
} }
}, },
@@ -260,10 +262,6 @@
mounted () { mounted () {
this.$nextTick(() => { this.$nextTick(() => {
setTimeout(() => {
// this.initLineChart('.chart2')
}, 500)
if (document.querySelector('.AiDvWrapper .viewPanel')) { if (document.querySelector('.AiDvWrapper .viewPanel')) {
document.querySelector('.AiDvWrapper .viewPanel').style.backgroundImage = 'url(https://cdn.cunwuyun.cn/dvcp/dv/pddv/bg.png)' 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 => { this.instance.post(`/app/wxgroupstatistic/getGroupNumber`).then(res => {
if (res.code === 0) { 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 => { this.instance.post(`/app/wxgroupstatistic/getTagNumber`).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.tagInfo = res.data
} }
}) })
this.instance.post(`/app/wxgroupstatistic/getUserChatNumber`).then(res => { this.instance.post(`/app/wxgroupstatistic/getUserChatNumber`).then(res => {