From 4e569121eca39ed01ed558f756daac43baec8a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E6=9C=89=E6=B8=85=E9=A6=99=E6=9C=88=E6=9C=89?= =?UTF-8?q?=E9=98=B4?= <185154740@qq.com> Date: Thu, 13 Jan 2022 11:04:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppGridManagement/Statistics.vue | 59 +++++++++++++++++------ 1 file changed, 44 insertions(+), 15 deletions(-) diff --git a/src/apps/AppGridManagement/Statistics.vue b/src/apps/AppGridManagement/Statistics.vue index 8f0d58bb..7b304fc9 100644 --- a/src/apps/AppGridManagement/Statistics.vue +++ b/src/apps/AppGridManagement/Statistics.vue @@ -3,7 +3,7 @@
-
南湖街道网格一
+
{{ girdMsgList.girdName || '' }}
@@ -15,24 +15,19 @@
- 5 + {{ peopleList['网格长'] || 0 }} 网格长
- 5 + {{ peopleList['网格员'] || 0 }} 网格员
- 5 + {{ peopleList['责任家庭数'] || 0 }} 责任家庭数
- -
- 5 - 家庭成员数 -
@@ -43,19 +38,22 @@
网格名称 - 南湖街道基础网络一 + {{ girdMsgList.girdName || '' }} +
网格类型 - 一级网络 + + {{ $dict.getLabel('girdType', girdMsgList.girdType) || '' }} +
网格层级 - 街道 + {{ $dict.getLabel('girdType', girdMsgList.girdLevel) || '' }}
@@ -72,13 +70,44 @@ export default { params: Object, }, data() { - return {} + return { + girdUser: [], + peopleList: {}, + girdMsgList: {}, + } }, computed: {}, watch: {}, onLoad() {}, - onShow() {}, - methods: {}, + mounted() { + this.$dict.load('girdType', 'girdLevel').then(() => {}) + this.isGirdUser() + }, + methods: { + isGirdUser() { + this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => { + if (res.code == 0) { + this.girdUser = res.data + if (this.girdUser.checkType != '0') { + this.getList() + if (this.girdUser.appGirdInfo) { + this.girdMsgList = this.girdUser.appGirdInfo + } + } else { + this.$u.toast('当前人员不是网格员或网格管理员') + } + } + }) + }, + + getList() { + this.$http.post(`/app/appgirdmemberinfo/girdMemberAndResidentStatistic?girdId=${this.girdUser.girdId}`).then((res) => { + if (res.code == 0) { + this.peopleList = res.data + } + }) + }, + }, }