@@ -25,7 +27,7 @@
{{ item.title }}
-
{{ item.num }}
+
{{ girdInfo[item.key] }}
居民活跃指数
@@ -66,23 +68,24 @@ export default {
tabStatistics: [
{
title: '网格数',
- num: 15
+ key: '网格数'
},
{
title: '网格员数',
- num: 35
+ key: '网格员'
},
{
title: '辖区户数',
- num: 1550
+ key: '辖区户数'
},
{
title: '居民群数',
- num: 15
+ key: '居民群'
}
],
echartData: null,
- list: ['慧政务改版上线了,点此查看帮助文档!']
+ list: ['慧政务改版上线了,点此查看帮助文档!'],
+ girdInfo: {}
}
},
computed: { ...mapState(['user']) },
@@ -111,7 +114,7 @@ export default {
color: '#666',
},
},
- data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
+ data: ['4月', '5月', '6月', '7月', '8月',]
},
yAxis: {
axisLine:{ //y轴
@@ -128,9 +131,12 @@ export default {
},
type: 'value'
},
+ tooltip: {
+ trigger: 'axis'
+ },
series: [
{
- data: [150, 230, 224, 218, 135, 147, 260],
+ data: [155, 130, 120, 160, 120, 130, 110],
type: 'line',
areaStyle: {//覆盖区域的渐变色
normal: {
@@ -164,10 +170,19 @@ export default {
this.echartData.setOption(option)
},
linkTo(url) {
+ console.log(url)
uni.navigateTo({ url })
+ },
+ getGirdInfo() {
+ this.$http.post(`/app/appgirdmemberinfo/girdMemberOrNotStatistic`).then(res => {
+ if (res.code == 0) {
+ this.girdInfo = res.data
+ }
+ })
}
},
created() {
+ this.getGirdInfo()
this.$nextTick(() => {
this.chartInit()
})
diff --git a/src/project/saas/AppHome/components/My.vue b/src/project/saas/AppHome/components/My.vue
index f0adff87..deaf1122 100644
--- a/src/project/saas/AppHome/components/My.vue
+++ b/src/project/saas/AppHome/components/My.vue
@@ -10,7 +10,7 @@