BUG 28270

This commit is contained in:
aixianling
2022-03-16 16:35:06 +08:00
parent 223bf47bbf
commit 3feb255563

View File

@@ -4,7 +4,7 @@
<div class="item"> <div class="item">
<div class="label required" v-text="`是否户主`"/> <div class="label required" v-text="`是否户主`"/>
<div class="flex"> <div class="flex">
<div class="radioBtn" v-for="op in $dict.getDict('yesOrNo')" :key="op.dictValue" v-text="op.dictName" <div class="radioBtn" v-for="op in ownerOps" :key="op.dictValue" v-text="op.dictName"
:class="{current:op.dictValue==form.householdName}" @click="form.householdName=op.dictValue"/> :class="{current:op.dictValue==form.householdName}" @click="form.householdName=op.dictValue"/>
</div> </div>
</div> </div>
@@ -77,11 +77,12 @@ export default {
name: "authApply", name: "authApply",
appName: "居民档案申请", appName: "居民档案申请",
computed: { computed: {
...mapState(['user']), ...mapState(['user'])
}, },
data() { data() {
let required = true let required = true
return { return {
ownerOps:[],
form: { form: {
householdName: "1", householdName: "1",
currentAreaName: "", currentAreaName: "",
@@ -116,7 +117,9 @@ export default {
} }
}, },
onLoad() { onLoad() {
this.$dict.load("yesOrNo", "householdRelation") this.$dict.load("yesOrNo", "householdRelation").then(()=>{
this.ownerOps = this.$dict.getDict("yesOrNo")
})
this.getResident() this.getResident()
}, },
watch: { watch: {