Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
aixianling
2022-04-20 11:05:57 +08:00
3 changed files with 9 additions and 3 deletions

View File

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

View File

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

View File

@@ -73,6 +73,8 @@ export default {
<style lang="scss" scoped>
.neighborDetail {
padding-bottom: 140px;
box-sizing: border-box;
.type {
display: flex;
justify-content: space-between;