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}}