This commit is contained in:
shijingjing
2022-04-20 10:00:05 +08:00
parent f60dd5e01f
commit f3ce80b49e
2 changed files with 7 additions and 3 deletions

View File

@@ -72,7 +72,6 @@ export default {
this.getList() this.getList()
}) })
this.getList() this.getList()
this.getUserInfo()
}, },
methods: { methods: {
search(e) { search(e) {

View File

@@ -7,7 +7,7 @@
</div> </div>
<div class="info"> <div class="info">
<div class="name">{{ data.name }}</div> <div class="name">{{ data.name }}</div>
<div class="idNumber">{{ data.idNumber.replace(/(.{6}).*(.{4})/, '$1********$2') }}</div> <div class="idNumber">{{ data.householdIdNumber.replace(/(.{6}).*(.{4})/, '$1********$2') }}</div>
</div> </div>
<div class="relation" :style="{color:data.householdRelation == 11? '#4181FF' : '#999999' }"> <div class="relation" :style="{color:data.householdRelation == 11? '#4181FF' : '#999999' }">
{{ $dict.getLabel('householdRelation',data.householdRelation) }} {{ $dict.getLabel('householdRelation',data.householdRelation) }}
@@ -84,10 +84,14 @@ export default {
data: {}, data: {},
} }
}, },
onShow() {
this.getUserInfo()
},
onLoad(o) { onLoad(o) {
this.$dict.load('sex','householdRelation','nation','education','maritalStatus','politicsStatus','faithType','job') this.$dict.load('sex','householdRelation','nation','education','maritalStatus','politicsStatus','faithType','job')
this.id = o.id this.id = o.id
this.getUserInfo()
}, },
methods: { methods: {
getUserInfo() { getUserInfo() {
@@ -97,6 +101,7 @@ export default {
} }
}).then(res => { }).then(res => {
if(res.code ==0) { if(res.code ==0) {
console.log(res);
this.data = res.data.resident this.data = res.data.resident
} }
}) })