地区
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="AppHelpEffect">
|
<div class="AppHelpEffect">
|
||||||
<AiTopFixed>
|
<AiTopFixed>
|
||||||
<div class="search"><u-search placeholder="请输入姓名、身份证号" v-model="name" :show-action="false"></u-search></div>
|
<div class="search"><u-search placeholder="请输入姓名、身份证号" @clear="name='',getList()" clearable v-model="name" :show-action="false" @search="search"></u-search></div>
|
||||||
<div class="select">
|
<div class="select">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<AiAreaPicker v-model="areaId" :areaId="user.areaId" :name.sync="areaName" @select="areaSelect" selectRoot>
|
<AiAreaPicker v-model="areaId" :area-id="user.areaId" :name.sync="areaName" @select="areaSelect" selectRoot>
|
||||||
<div>
|
<div>
|
||||||
<u-icon name="map-fill" color="#999" size="24" style="margin-left: 4px;width: 14px;display:inline-block;margin-top:18px"></u-icon>
|
<u-icon name="map-fill" color="#999" size="24" style="margin-left: 4px;width: 14px;display:inline-block;margin-top:18px"></u-icon>
|
||||||
<span v-if="areaId" style="color:#333;fontSize: 14px;" class="areaName">{{ areaName }}</span>
|
<span v-if="areaId" style="color:#333;fontSize: 14px;" class="areaName">{{ areaName }}</span>
|
||||||
<span v-else style="color: #999;fontSize: 14px;" class="areaName">所在地区</span>
|
<span v-else style="color: #999;fontSize: 14px;" class="areaName">所在地区</span>
|
||||||
<u-icon name="arrow-down" color="#999" size="24" style="margin-left: 4px;width: 14px;display:inline-block;margin-top:18px" @select="areaSelect(e)"></u-icon>
|
<u-icon name="arrow-down" color="#999" size="24" style="margin-left: 4px;width: 14px;display:inline-block;margin-top:18px" @select="areaSelect"></u-icon>
|
||||||
</div>
|
</div>
|
||||||
</AiAreaPicker>
|
</AiAreaPicker>
|
||||||
</div>
|
</div>
|
||||||
@@ -64,14 +64,14 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapState(['user'])
|
...mapState(['user'])
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
areaSelect(e) {
|
areaSelect(e) {
|
||||||
this.areaId =e
|
console.log(e);
|
||||||
|
this.areaId = e
|
||||||
this.current = 1
|
this.current = 1
|
||||||
this.list = []
|
this.list = []
|
||||||
this.$nextTick(() => {
|
this.getList()
|
||||||
this.getList()
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.$dict.load('fpHouseType').then(() => {
|
this.$dict.load('fpHouseType').then(() => {
|
||||||
@@ -83,6 +83,8 @@ export default {
|
|||||||
})
|
})
|
||||||
this.typeList.unshift({ label: '全部类型', value: ''})
|
this.typeList.unshift({ label: '全部类型', value: ''})
|
||||||
})
|
})
|
||||||
|
this.areaId = this.user.areaId
|
||||||
|
this.getList()
|
||||||
},
|
},
|
||||||
typeSelect(v) {
|
typeSelect(v) {
|
||||||
this.current = 1
|
this.current = 1
|
||||||
@@ -90,6 +92,12 @@ export default {
|
|||||||
this.houseType = v?.[0].value
|
this.houseType = v?.[0].value
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
search(value) {
|
||||||
|
this.name = value
|
||||||
|
this.list = []
|
||||||
|
this.current= 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
this.$http.post('/app/apppreventionreturntopoverty/list', null, {
|
this.$http.post('/app/apppreventionreturntopoverty/list', null, {
|
||||||
params: {
|
params: {
|
||||||
@@ -114,8 +122,6 @@ export default {
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '帮扶成效'
|
document.title = '帮扶成效'
|
||||||
this.areaId = this.user.areaId
|
|
||||||
this.getList()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user