身份证号码脱敏

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

@@ -64,7 +64,7 @@ export default {
computed: { ...mapState(['user']) },
onShow() {
this.areaId = this.user.areaId
document.title = '疫情防控'
document.title = '返乡人员信息'
this.getList()
this.getTotal()
uni.$on('updateList', () => {
@@ -92,6 +92,9 @@ export default {
this.$http.post(`/app/appepidemicbackhomerecord/list?current=${this.current}&size=10&status=${status}&name=${this.name}&arriveAreaId=${this.areaId}`)
.then((res) => {
if (res.code == 0) {
res.data.records.map((item) => {
item.idNumber = item.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
})
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
}
})