27028
This commit is contained in:
@@ -233,12 +233,20 @@
|
|||||||
getStatisticsInfo (id) {
|
getStatisticsInfo (id) {
|
||||||
this.instance.post(`/app/appgirdmemberinfo/girdMemberAndResidentStatistic?girdId=${id}`).then((res) => {
|
this.instance.post(`/app/appgirdmemberinfo/girdMemberAndResidentStatistic?girdId=${id}`).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.userInfo = Object.keys(res.data).map(v => {
|
this.userInfo = [
|
||||||
return {
|
{
|
||||||
'name': v,
|
'name': '网格长',
|
||||||
'人数': res.data[v]
|
'人数': res.data['网格长'] || 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name': '网格员',
|
||||||
|
'人数': res.data['网格员'] || 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name': '责任家庭数',
|
||||||
|
'人数': res.data['责任家庭数'] || 0
|
||||||
}
|
}
|
||||||
})
|
]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user