This commit is contained in:
liuye
2022-01-18 10:16:18 +08:00
parent ffe3eb79f0
commit 836671d0a1

View File

@@ -83,13 +83,16 @@ export default {
} }
}, },
created() { created() {
},
onLoad() {
this.$dict.load('sex', 'nation', 'education', 'job', 'faithType', 'politicsStatus', 'militaryStatus', 'householdRelation', 'householdName')
console.log('居民档案性别(无字典)', this.resident.sex) console.log('居民档案性别(无字典)', this.resident.sex)
console.log('居民档案性别(有字典)', this.$dict.getLabel('sex', this.resident.sex)) console.log('居民档案性别(有字典)', this.$dict.getLabel('sex', this.resident.sex))
console.log('居民档案字典值', this.$dict.getDict('sex')) console.log('居民档案字典值', this.$dict.getDict('sex'))
}, },
onShow() { onShow() {
document.title = '居民详情' document.title = '居民详情'
this.$dict.load('sex', 'nation', 'education', 'job', 'faithType', 'politicsStatus', 'militaryStatus', 'householdRelation', 'householdName')
}, },
} }
</script> </script>