微信统计
This commit is contained in:
@@ -243,8 +243,8 @@ export default {
|
|||||||
maxSurfaceAngle: 80
|
maxSurfaceAngle: 80
|
||||||
},
|
},
|
||||||
data: [
|
data: [
|
||||||
{ value: 1048, name: '男' },
|
{ value: this.sexArray[1].v2, name: '男' },
|
||||||
{ value: 735, name: '女' },
|
{ value: this.sexArray[0].v2, name: '女' },
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -67,8 +67,12 @@ export default {
|
|||||||
return {
|
return {
|
||||||
friendsCard: {},
|
friendsCard: {},
|
||||||
friendsData: [],
|
friendsData: [],
|
||||||
|
friendsMonth: [],
|
||||||
|
friendsNumber: [],
|
||||||
groupsCard: {},
|
groupsCard: {},
|
||||||
groupsData: [],
|
groupsData: [],
|
||||||
|
groupsMonth: [],
|
||||||
|
groupsNumber: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -85,6 +89,8 @@ export default {
|
|||||||
if(res?.data) {
|
if(res?.data) {
|
||||||
this.friendsCard = res.data.居民统计
|
this.friendsCard = res.data.居民统计
|
||||||
this.friendsData = 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) {
|
if(res?.data) {
|
||||||
this.groupsCard = res.data.居民群统计
|
this.groupsCard = res.data.居民群统计
|
||||||
this.groupsData = 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: {
|
xAxis: {
|
||||||
type: 'category',
|
type: 'category',
|
||||||
data: ['1月', '2月', '3月', '4月', '5月'],
|
data: this.friendsMonth,
|
||||||
axisTick: {
|
axisTick: {
|
||||||
show: false,
|
show: false,
|
||||||
}
|
}
|
||||||
@@ -120,7 +128,7 @@ export default {
|
|||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
data: [350, 230, 224, 218, 135],
|
data: this.friendsNumber,
|
||||||
type: 'line',
|
type: 'line',
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
color: '#3975C6', // 折线线条颜色
|
color: '#3975C6', // 折线线条颜色
|
||||||
@@ -162,7 +170,7 @@ export default {
|
|||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'category',
|
type: 'category',
|
||||||
data: ['1月', '2月', '3月', '4月', '5月'],
|
data: this.groupsMonth,
|
||||||
axisTick: {
|
axisTick: {
|
||||||
show: false,
|
show: false,
|
||||||
}
|
}
|
||||||
@@ -178,7 +186,7 @@ export default {
|
|||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
data: [350, 230, 224, 218, 135],
|
data: this.groupsNumber,
|
||||||
type: 'line',
|
type: 'line',
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
color: '#3975C6', // 折线线条颜色
|
color: '#3975C6', // 折线线条颜色
|
||||||
|
|||||||
Reference in New Issue
Block a user