This commit is contained in:
liuye
2022-06-16 10:15:21 +08:00
parent f8cbc8d5aa
commit 423b4a4876
2 changed files with 5 additions and 7 deletions

View File

@@ -8,7 +8,7 @@
<!-- @select="areaSelect" -->
<u-form label-width="auto">
<u-form-item label="区域选择" right-icon="arrow-right" class="areaIds">
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @input="seachObj" :name.sync="areaName" selectRoot/>
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="changeArea" :name.sync="areaName" selectRoot/>
</u-form-item>
</u-form>
</div>
@@ -101,8 +101,7 @@ export default {
methods: {
getList() {
var residentType = ['', 0, 1][this.currentTabs]
this.$http
.post('/app/appresident/list', null, {
this.$http.post('/app/appresident/list', null, {
params: {
size: 20,
current: this.current,
@@ -111,8 +110,7 @@ export default {
residentType: residentType,
auditStatus: 1
},
})
.then((res) => {
}).then((res) => {
if (res.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
@@ -132,7 +130,7 @@ export default {
uni.navigateTo({url: `./DetailCard?id=${item.id}`})
},
seachObj(e) {
changeArea(e) {
this.areaId = e
this.current = 1
this.getList()