修复网格选择
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="AppGridManagement">
|
||||
<div class="pad-t32" v-if="component != 'Map' && isAdmin"></div>
|
||||
<div class="select-gird" v-if="component != 'Map' && isAdmin" flex>
|
||||
<AiPagePicker type="custom" class="fill" :selected="[params]" @select="handleSelectGird"
|
||||
<AiPagePicker type="custom" class="fill" @select="handleSelectGird"
|
||||
:ops="{url:'./SelectGird',label: 'girdName'}">
|
||||
<div flex>
|
||||
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
|
||||
@@ -103,7 +103,7 @@ export default {
|
||||
uni.navigateTo({url})
|
||||
},
|
||||
handleSelectGird(v) {
|
||||
this.params = v?.[0] || {}
|
||||
this.params = v || {}
|
||||
this.refreshHome()
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="detail">
|
||||
<div class="grid-select">
|
||||
<AiPagePicker type="custom" class="fill" :selected="[form]" @select="handleSelectGird"
|
||||
<AiPagePicker type="custom" class="fill" @select="handleSelectGird"
|
||||
:ops="{url:'./SelectGird',label: 'girdName'}">
|
||||
<div class="gird-content">
|
||||
<div class="label">网格选择</div>
|
||||
@@ -83,8 +83,8 @@ export default {
|
||||
|
||||
methods: {
|
||||
handleSelectGird(v) {
|
||||
this.form = v?.[0]
|
||||
this.getGridList(v?.[0].id, true)
|
||||
this.form = v||{}
|
||||
this.getGridList(v?.id, true)
|
||||
},
|
||||
toChoose() {
|
||||
uni.navigateTo({
|
||||
|
||||
@@ -31,14 +31,14 @@
|
||||
<div class="boxes">
|
||||
<span class="boxesLeft">网格名称</span>
|
||||
|
||||
<span class="boxesRight">{{ girdMsgList.girdName || '' }}</span>
|
||||
<span class="boxesRight">{{ gridInfo.girdName || '' }}</span>
|
||||
<!-- <span class="boxesRight">{{ girdUser.appGirdInfo.girdName }}</span> -->
|
||||
</div>
|
||||
|
||||
<div class="boxes">
|
||||
<span class="boxesLeft">标绘状态</span>
|
||||
|
||||
<span class="boxesRight">{{ girdMsgList.plottingStatus == 1 ? '已标绘' : '未标绘' }}</span>
|
||||
<span class="boxesRight">{{ gridInfo.plottingStatus == 1 ? '已标绘' : '未标绘' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -58,16 +58,16 @@ export default {
|
||||
return {
|
||||
girdUser: [],
|
||||
peopleList: {},
|
||||
girdMsgList: {},
|
||||
gridInfo: {},
|
||||
checkType: '',
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.isGirdUser()
|
||||
this.girdMsgList = this.params
|
||||
this.gridInfo = this.params
|
||||
this.getList()
|
||||
uni.$on('goback', (res) => {
|
||||
this.girdMsgList = res
|
||||
this.gridInfo = res
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
@@ -81,7 +81,7 @@ export default {
|
||||
},
|
||||
|
||||
getList() {
|
||||
this.$http.post(`/app/appgirdmemberinfo/girdMemberAndResidentStatistic?girdId=${this.girdMsgList.id}`).then((res) => {
|
||||
this.$http.post(`/app/appgirdmemberinfo/girdMemberAndResidentStatistic?girdId=${this.gridInfo.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.peopleList = res.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user