This commit is contained in:
yanran200730
2022-01-13 17:12:05 +08:00
parent 3e7284f6e0
commit a0b0b308db

View File

@@ -20,7 +20,7 @@
</div> </div>
<div class="search"> <div class="search">
<div class="left"> <div class="left">
<AiAreaPicker v-model="areaId" all :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" style="color: #666"> <AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" style="color: #666">
<u-icon name="map-fill" color="#3192F4" size="20px" style="vertical-align: text-bottom"></u-icon> <u-icon name="map-fill" color="#3192F4" size="20px" style="vertical-align: text-bottom"></u-icon>
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span> <span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
<span v-else>请选择</span> <span v-else>请选择</span>
@@ -64,6 +64,7 @@ export default {
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
onShow() { onShow() {
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.areaName = this.user.areaName
document.title = '返乡登记' document.title = '返乡登记'
this.getList() this.getList()
this.getTotal() this.getTotal()
@@ -72,8 +73,11 @@ export default {
}) })
}, },
methods: { methods: {
areaSelect() { areaSelect(e) {
this.getListInit() this.areaId =e
this.$nextTick(() => {
this.getListInit()
})
}, },
tabClick(index) { tabClick(index) {
this.tabIndex = index this.tabIndex = index