From a54c55d7ed59df896b6a46a2fda6f4cf67a33f62 Mon Sep 17 00:00:00 2001 From: liuye Date: Wed, 17 Aug 2022 15:59:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/saas/AppHome/components/Home.vue | 58 ++------------------ 1 file changed, 6 insertions(+), 52 deletions(-) diff --git a/src/project/saas/AppHome/components/Home.vue b/src/project/saas/AppHome/components/Home.vue index 904c8442..ca236d50 100644 --- a/src/project/saas/AppHome/components/Home.vue +++ b/src/project/saas/AppHome/components/Home.vue @@ -26,8 +26,8 @@
数据统计
-

{{ item.title }}

-
{{ girdInfo[item.key] || 0}}
+

{{ item.label }}

+
{{ item.value || 0}}
消息发送情况
@@ -161,56 +161,10 @@ export default { this.$http.post(`/app/appgirdmemberinfo/girdMemberOrNotStatistic`).then(res => { if (res.code == 0) { this.girdInfo = res.data - if(res.data['网格员类型'] == 2) { //网格长 - this.tabStatistics= [ - { - title: '网格数', - key: '网格数' - }, - { - title: '网格员数', - key: '网格员' - }, - { - title: '辖区户数', - key: '辖区户数' - }, - { - title: '居民群数', - key: '居民群' - }, - ] - }else if(res.data['网格员类型'] == 1) { //网格员 - this.tabStatistics= [ - { - title: '居民群数', - key: '居民群' - }, - { - title: '辖区户数', - key: '辖区户数' - }, - { - title: '微信好友', - key: '微信好友' - }, - { - title: '消息累计', - key: '消息累计' - } - ] - }else { - this.tabStatistics= [ - { - title: '居民群数', - key: '居民群' - }, - { - title: '微信好友', - key: '微信好友' - } - ] - + for(var i in res.data) { + if(i != '加入天数' && i != '网格员类型') { + this.tabStatistics.push({label: i, value: res.data[i]}) + } } } })