微信统计

This commit is contained in:
shijingjing
2022-12-22 15:41:18 +08:00
parent f2807e77d3
commit 8dc4e1d850
2 changed files with 14 additions and 6 deletions

View File

@@ -243,8 +243,8 @@ export default {
maxSurfaceAngle: 80
},
data: [
{ value: 1048, name: '男' },
{ value: 735, name: '女' },
{ value: this.sexArray[1].v2, name: '男' },
{ value: this.sexArray[0].v2, name: '女' },
]
}
]

View File

@@ -67,8 +67,12 @@ export default {
return {
friendsCard: {},
friendsData: [],
friendsMonth: [],
friendsNumber: [],
groupsCard: {},
groupsData: [],
groupsMonth: [],
groupsNumber: []
}
},
created() {
@@ -85,6 +89,8 @@ export default {
if(res?.data) {
this.friendsCard = res.data.居民统计
this.friendsData = res.data.居民好友数
this.friendsMonth = this.friendsData.map(e=> e.month)
this.friendsNumber = this.friendsData.map(e=> e.totalNumber)
}
})
// 居民群
@@ -92,6 +98,8 @@ export default {
if(res?.data) {
this.groupsCard = res.data.居民群统计
this.groupsData = res.data.群成员数
this.groupsMonth = this.groupsData.map(e=> e.month)
this.groupsNumber = this.groupsData.map(e=> e.totalNumber)
}
})
},
@@ -104,7 +112,7 @@ export default {
},
xAxis: {
type: 'category',
data: ['1月', '2月', '3月', '4月', '5月'],
data: this.friendsMonth,
axisTick: {
show: false,
}
@@ -120,7 +128,7 @@ export default {
},
series: [
{
data: [350, 230, 224, 218, 135],
data: this.friendsNumber,
type: 'line',
lineStyle: {
color: '#3975C6', // 折线线条颜色
@@ -162,7 +170,7 @@ export default {
},
xAxis: {
type: 'category',
data: ['1月', '2月', '3月', '4月', '5月'],
data: this.groupsMonth,
axisTick: {
show: false,
}
@@ -178,7 +186,7 @@ export default {
},
series: [
{
data: [350, 230, 224, 218, 135],
data: this.groupsNumber,
type: 'line',
lineStyle: {
color: '#3975C6', // 折线线条颜色