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
+ }
+ })
+ },
+ },
}