身份证号码脱敏
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user