身份证号码脱敏

This commit is contained in:
liuye
2022-01-12 09:59:03 +08:00
parent 8286eb2052
commit 7c71fc4c3a
2 changed files with 5 additions and 1 deletions

View File

@@ -76,6 +76,7 @@ export default {
getDetail() {
this.$http.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${this.id}`).then((res) => {
if (res.code == 0) {
res.data.idNumber = res.data.idNumber.replace(/(.{10}).*(.{4})/,"$1****$2")
this.info = res.data
this.info.health = this.info.health.split(',')
}