|
|
|
@ -37,25 +37,26 @@ |
|
|
|
<div class="f-label">联系电话:</div> <div class="f-left8 f-font-color"> |
|
|
|
{{resiDetailObj.showMobile?resiDetailObj.showMobile:resiDetailObj.mobile?`${resiDetailObj.mobile.substr(0,3)}`+ "****" +`${resiDetailObj.mobile.substr(7,5)}`:'--'}} |
|
|
|
</div> |
|
|
|
<img v-show="this.showFlagMobileBtn" src="../../assets/img/yanjing1.png" alt="" width="14px" style="margin-left: 10px"> |
|
|
|
<img v-show="!this.showFlagMobileBtn" src="../../assets/img/yanjing2.png" alt="" width="14px" style="margin-left: 10px"> |
|
|
|
<el-button v-if="resiDetailObj.mobile" |
|
|
|
style="margin-left: 10px" |
|
|
|
type="text" |
|
|
|
class="div-table-button--blue" |
|
|
|
icon="el-icon-view" |
|
|
|
size="small" |
|
|
|
@click="handleTuomin('mobile')">显示</el-button> |
|
|
|
@click="handleTuomin('mobile')">{{showFlagMobileBtn?'显示':'隐藏'}}</el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12" class="f-flex"> |
|
|
|
<div class="f-label">证件号: </div> |
|
|
|
<div class="f-left8 f-font-color">{{resiDetailObj.showIdNum?resiDetailObj.showIdNum:resiDetailObj.idNum?`${resiDetailObj.idNum.substr(0, 11)}` +"******" +`${resiDetailObj.idNum.substr(16, 2)}`:'--'}} |
|
|
|
</div> |
|
|
|
<img v-show="this.showFlagIdCardBtn" src="../../assets/img/yanjing1.png" alt="" width="14px" style="margin-left: 10px"> |
|
|
|
<img v-show="!this.showFlagIdCardBtn" src="../../assets/img/yanjing2.png" alt="" width="14px" style="margin-left: 10px"> |
|
|
|
<el-button v-if="resiDetailObj.idNum" |
|
|
|
style="margin-left: 10px" |
|
|
|
|
|
|
|
type="text" |
|
|
|
class="div-table-button--blue" |
|
|
|
icon="el-icon-view" |
|
|
|
size="small" |
|
|
|
@click="handleTuomin('idCard')">显示</el-button> |
|
|
|
@click="handleTuomin('idCard')">{{showFlagIdCardBtn?'显示':'隐藏'}}</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row type="flex" justify="" class="f-m-top29" > |
|
|
|
@ -924,7 +925,9 @@ export default { |
|
|
|
specialDtoArr:[], |
|
|
|
spouseArr:[], |
|
|
|
relationshipArr:[], |
|
|
|
categoryDictArr:[] |
|
|
|
categoryDictArr:[], |
|
|
|
showFlagIdCardBtn:true, |
|
|
|
showFlagMobileBtn:true |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -1740,14 +1743,21 @@ export default { |
|
|
|
}, |
|
|
|
async handleTuomin (type) { |
|
|
|
const url = `/actual/base/residentBaseInfo/getResiUserInfo/${this.resiId}`; |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url); |
|
|
|
if (code === 0) { |
|
|
|
if (type === 'mobile') { |
|
|
|
this.$set(this.resiDetailObj, 'showMobile', data.mobile) |
|
|
|
this.showFlagMobileBtn = !this.showFlagMobileBtn |
|
|
|
if(this.showFlagMobileBtn){ |
|
|
|
this.$set(this.resiDetailObj, 'showMobile', data.mobile.substr(0,3) +'****'+ data.mobile.substr(7,4) ) |
|
|
|
} |
|
|
|
} |
|
|
|
if (type === 'idCard') { |
|
|
|
this.$set(this.resiDetailObj, 'showIdNum', data.idNum) |
|
|
|
this.showFlagIdCardBtn = !this.showFlagIdCardBtn |
|
|
|
if(this.showFlagIdCardBtn){ |
|
|
|
this.$set(this.resiDetailObj, 'showIdNum', data.idNum.substr(0,11) +'****'+ data.idNum.substr(16,2) ) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|