From 7c71fc4c3adbf4a8c3bdb914ef43ffc20c90215a Mon Sep 17 00:00:00 2001 From: liuye Date: Wed, 12 Jan 2022 09:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E8=AF=81=E5=8F=B7=E7=A0=81?= =?UTF-8?q?=E8=84=B1=E6=95=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppEpidemicSituation/BackUserList.vue | 5 ++++- src/apps/AppEpidemicSituation/ErrorInfo.vue | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/apps/AppEpidemicSituation/BackUserList.vue b/src/apps/AppEpidemicSituation/BackUserList.vue index 119cc288..8c6d5b22 100644 --- a/src/apps/AppEpidemicSituation/BackUserList.vue +++ b/src/apps/AppEpidemicSituation/BackUserList.vue @@ -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 } }) diff --git a/src/apps/AppEpidemicSituation/ErrorInfo.vue b/src/apps/AppEpidemicSituation/ErrorInfo.vue index 5ab5373d..18a685a2 100644 --- a/src/apps/AppEpidemicSituation/ErrorInfo.vue +++ b/src/apps/AppEpidemicSituation/ErrorInfo.vue @@ -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(',') }