This commit is contained in:
花有清香月有阴
2021-12-24 19:33:28 +08:00
parent 1309034d2f
commit 6b2762b54a

View File

@@ -7,7 +7,8 @@
<div class="areaHint"> <div class="areaHint">
<u-icon name="map-fill" color="#73ABFF"></u-icon> <u-icon name="map-fill" color="#73ABFF"></u-icon>
<span>{{ currentAddress }}</span> <span>{{ resident.currentAreaName }}</span>
<span v-if="resident.currentAddress">{{ resident.currentAddress }}</span>
</div> </div>
</div> </div>
@@ -59,13 +60,13 @@ export default {
return { return {
id: '', id: '',
data: [], data: [],
currentAddress: '', resident: {},
} }
}, },
computed: {}, computed: {},
watch: {}, watch: {},
onLoad(o) { onLoad(o) {
document.title = '居民档案' document.title = '居民档案'
this.id = o.id this.id = o.id
this.$dict.load('householdRelation', 'fileStatus').then(() => { this.$dict.load('householdRelation', 'fileStatus').then(() => {
this.getDetail() this.getDetail()
@@ -78,7 +79,7 @@ export default {
if (res.code == 0) { if (res.code == 0) {
this.data = res.data this.data = res.data
this.$nextTick(() => { this.$nextTick(() => {
this.currentAddress = res.data.resident.currentAddress this.resident = res.data.resident
}) })
} }
}) })