This commit is contained in:
yanran200730
2022-09-09 09:02:44 +08:00
parent 95eb08e8c1
commit 7a30018e52

View File

@@ -3,36 +3,42 @@
<div class="left"> <div class="left">
<div class="appPdDv-title">企微数据库</div> <div class="appPdDv-title">企微数据库</div>
<div class="tab"> <div class="tab">
<div class="tab-item" :class="[leftIndex === 0 ? 'active' : '']" @click="leftIndex = 0">居民统计</div> <div class="tab-item" :class="[leftIndex === 0 ? 'active' : '']" @click="leftIndex = 0">群员统计</div>
<div class="tab-item" :class="[leftIndex === 1 ? 'active' : '']" @click="leftIndex = 1">会话统计</div> <div class="tab-item" :class="[leftIndex === 1 ? 'active' : '']" @click="leftIndex = 1">会话统计</div>
</div> </div>
<div class="tab-content"> <div class="tab-content">
<div class="tab-content__item" v-show="leftIndex === 0"> <div class="tab-content__item" v-show="leftIndex === 0">
<div class="item"> <div class="item">
<div class="title">统计</div> <div class="title">警务群统计</div>
<div class="item-top jmhy"> <div class="item-top jmhy">
<div class="item-top__item"> <div class="item-top__item">
<h2>居民好友</h2> <h2>居民</h2>
<div class="bottom"> <div class="bottom">
<span>{{ residentInfo.customerTotal || 0 }}</span> <span>{{ groupNumber.groupSum || 0 }}</span>
</div>
</div>
<div class="item-top__item">
<h2>群成员</h2>
<div class="bottom">
<span>{{ groupNumber.totalSum || 0 }}</span>
</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>{{ residentInfo.addCustomerCount || 0 }}</span> <span>{{ groupNumber.increaseSum || 0 }}</span>
<img src="https://cdn.cunwuyun.cn/dvcp/dv/pddv/arrow-rise.png" /> <img src="https://cdn.cunwuyun.cn/dvcp/dv/pddv/arrow-rise.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>{{ residentInfo.removeCustomerCount || 0 }}</span> <span>{{ groupNumber.decreaseSum || 0 }}</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> </div>
<div class="chart1" style="width: 100%; height: 200px;"></div> <div class="chart2" style="width: 100%; height: 200px;"></div>
</div> </div>
<div class="item"> <div class="item">
<div class="title">各局统计</div> <div class="title">各局统计</div>
@@ -312,16 +318,16 @@
this.rankList = res.data this.rankList = res.data
} }
}) })
this.instance.post(`/app/wxgroupstatistic/getCustommerNumber`).then(res => { // this.instance.post(`/app/wxgroupstatistic/getCustommerNumber`).then(res => {
if (res.code === 0) { // if (res.code === 0) {
this.residentInfo = res.data['居民统计'] // this.residentInfo = res.data['居民统计']
this.initLineChart('.chart1', { // this.initLineChart('.chart1', {
x: res.data['居民好友数'].map(v => v.month), // x: res.data['居民好友数'].map(v => v.month),
value: res.data['居民好友数'].map(v => v.totalNumber), // value: res.data['居民好友数'].map(v => v.totalNumber),
name: '居民好友' // name: '居民好友'
}) // })
} // }
}) // })
this.instance.post(`/app/wxgroupstatistic/replyPercentage`).then(res => { this.instance.post(`/app/wxgroupstatistic/replyPercentage`).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.replyPercentage = res.data this.replyPercentage = res.data
@@ -400,7 +406,7 @@
}, },
getGridInfo (e) { getGridInfo (e) {
if (this.level === 2 && !this.isChoose) { if (e.level === 2 && !this.isChoose) {
this.isChoose = true this.isChoose = true
} }
if (e.level === 4) return if (e.level === 4) return