From fa0c79d0248cbb839160dd037151c96f0b878675 Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Fri, 14 Jan 2022 13:57:47 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E8=81=94=E5=AE=B6=E5=BA=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/apps/AppGridManagement/AddFamily.vue | 212 +++++++++++++++++++-
src/apps/AppGridManagement/FamilyList.vue | 135 ++++++++++++-
src/apps/AppGridManagement/Organization.vue | 2 +-
3 files changed, 334 insertions(+), 15 deletions(-)
diff --git a/src/apps/AppGridManagement/AddFamily.vue b/src/apps/AppGridManagement/AddFamily.vue
index 2e217315..9d9af419 100644
--- a/src/apps/AppGridManagement/AddFamily.vue
+++ b/src/apps/AppGridManagement/AddFamily.vue
@@ -1,30 +1,228 @@
-
+
+
+
+ -
+
+
+

+

+
+
+
+

+
+
+
+ {{item.name}}
+ {{item.phone}}
+
+
{{item.idNumber}}
+
{{item.householdAddress}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/apps/AppGridManagement/FamilyList.vue b/src/apps/AppGridManagement/FamilyList.vue
index 3b7184f5..aba29e71 100644
--- a/src/apps/AppGridManagement/FamilyList.vue
+++ b/src/apps/AppGridManagement/FamilyList.vue
@@ -1,6 +1,27 @@
-
+
户主列表
+
+
+ -
+
+
+

+
+
+
+
+ {{item.name}}
+ {{item.phone}}
+
+
{{item.idNumber}}
+
{{item.householdAddress}}
+
+
+
+
+
+
@@ -8,23 +29,123 @@
export default {
data() {
return {
-
+ list:[],
+ current:1,
+ checkType: '',
+ userId: '',
}
},
methods: {
-
+ getList(){
+ this.$http.post(`/app/appgirdmemberresident/listByGirdMember?current=${this.current}&girdMemberId=${this.userId}`).then((res) => {
+ if (res.code == 0) {
+ this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
+ }
+ })
+ },
+ toAddFamily(){
+ uni.navigateTo({url: `./AddFamily?id=${this.userId}`})
+ },
+ isGirdUser() {
+ this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
+ if (res.code == 0) {
+ if (res.data.checkType) {
+ this.checkType = res.data.checkType
+ }
+ }
+ })
+ },
+ },
+ onLoad(option) {
+ this.userId = option.id
+ console.log(this.userId)
},
onShow() {
document.title = '责任家庭'
+ this.getList()
+ uni.$on('updateList', () => {
+ this.current = 1
+ this.getList()
+ })
+ this.isGirdUser()
+ },
+ onReachBottom() {
+ this.current = this.current + 1
+ this.getList()
},
- linkTo(url) {
- uni.navigateTo({url})
- }
}
diff --git a/src/apps/AppGridManagement/Organization.vue b/src/apps/AppGridManagement/Organization.vue
index edfb5e22..c138f490 100644
--- a/src/apps/AppGridManagement/Organization.vue
+++ b/src/apps/AppGridManagement/Organization.vue
@@ -24,7 +24,7 @@
{{item.name}}
{{item.checkType == 2 ? '网格长' : '网格员'}}
- 责任家庭 >
+ 责任家庭 >
{{item.girdName}}