网格(家庭关联)
This commit is contained in:
@@ -58,7 +58,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getList(){
|
||||
this.$http.post(`/app/appgirdmemberresident/listByGirdMember?current=${this.current}&girdMemberId=${this.userId}&girdId=${this.girdId}`).then((res) => {
|
||||
this.$http.post(`/app/appgirdmemberresident/listByGirdMember?current=${this.current}&girdMemberId=${this.userId}&girdId=${this.girdId}&name=${this.keyword}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||
}
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
<div class="right">
|
||||
<div class="name">{{item.name}}
|
||||
<span class="gird">{{item.checkType == 2 ? '网格长' : '网格员'}}</span>
|
||||
<span class="num" v-if="item.checkType == 1">家庭数(10)</span>
|
||||
<span class="num" v-if="item.checkType == 1">家庭数({{item.residentNumber}})</span>
|
||||
</div>
|
||||
<div class="gird-name">
|
||||
<span class="text">{{item.girdName}}</span>
|
||||
<span class="family-btn" @click="linkTo(`./FamilyList?id=${item.id}&girdId=${userGird.id}`)" v-if="item.checkType == 1">责任家庭 ></span>
|
||||
<span class="family-btn" @click="toFamily(item)" v-if="item.checkType == 1">责任家庭 ></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -70,6 +70,9 @@ export default {
|
||||
//错误处理
|
||||
}
|
||||
});
|
||||
},
|
||||
toFamily(item) {
|
||||
uni.navigateTo({url: `./FamilyList?id=${item.id}&girdId=${this.userGird.id}`})
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user