身份证号码脱敏
This commit is contained in:
@@ -64,7 +64,7 @@ export default {
|
|||||||
computed: { ...mapState(['user']) },
|
computed: { ...mapState(['user']) },
|
||||||
onShow() {
|
onShow() {
|
||||||
this.areaId = this.user.areaId
|
this.areaId = this.user.areaId
|
||||||
document.title = '疫情防控'
|
document.title = '返乡人员信息'
|
||||||
this.getList()
|
this.getList()
|
||||||
this.getTotal()
|
this.getTotal()
|
||||||
uni.$on('updateList', () => {
|
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}`)
|
this.$http.post(`/app/appepidemicbackhomerecord/list?current=${this.current}&size=10&status=${status}&name=${this.name}&arriveAreaId=${this.areaId}`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
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
|
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ export default {
|
|||||||
getDetail() {
|
getDetail() {
|
||||||
this.$http.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${this.id}`).then((res) => {
|
this.$http.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${this.id}`).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
res.data.idNumber = res.data.idNumber.replace(/(.{10}).*(.{4})/,"$1****$2")
|
||||||
this.info = res.data
|
this.info = res.data
|
||||||
this.info.health = this.info.health.split(',')
|
this.info.health = this.info.health.split(',')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user