bug
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<section class="document">
|
||||
<section class="document" v-if="isShow">
|
||||
<div class="card">
|
||||
<div class="info">
|
||||
<u-image border-radius="4" :src="top.detail.avatar" width="118" height="118" />
|
||||
@@ -79,19 +79,20 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
showID: false,
|
||||
isShow: false,
|
||||
familyList: [],
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
},
|
||||
onLoad() {
|
||||
this.$dict.load('sex', 'nation', 'education', 'job', 'faithType', 'politicsStatus', 'militaryStatus', 'householdRelation', 'householdName')
|
||||
console.log('居民档案性别(无字典)', this.resident.sex)
|
||||
console.log('居民档案性别(有字典)', this.$dict.getLabel('sex', this.resident.sex))
|
||||
console.log('居民档案字典值', this.$dict.getDict('sex'))
|
||||
this.$dict.load('sex', 'nation', 'education', 'job', 'faithType', 'politicsStatus', 'militaryStatus', 'householdRelation', 'householdName').then(() => {
|
||||
this.isShow = true
|
||||
})
|
||||
// console.log('居民档案性别(无字典)', this.resident.sex)
|
||||
// console.log('居民档案性别(有字典)', this.$dict.getLabel('sex', this.resident.sex))
|
||||
// console.log('居民档案字典值', this.$dict.getDict('sex'))
|
||||
},
|
||||
onShow() {
|
||||
// this.$dict.load('sex', 'nation', 'education', 'job', 'faithType', 'politicsStatus', 'militaryStatus', 'householdRelation', 'householdName')
|
||||
document.title = '居民详情'
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user