录入员审核通过手机号码加密

master
doublekou 1 year ago
parent 62cc4530ec
commit 1a8a33247b

@ -123,16 +123,16 @@ const columns: ProColumns[] = [
}, },
{ {
title: '联系方式', title: '联系方式',
// dataIndex: 'customNid', dataIndex: 'customNid'
customRender: function ({ record }: any) { // customRender: function ({ record }: any) {
if (record.enrollStatus === 2) { // if (record.enrollStatus === 2) {
const phoneNumber = record.customNid.toString() // const phoneNumber = record.customNid.toString()
const hiddenPhoneNumber = phoneNumber.replace(/^(\d{3})\d{4}(\d{4})$/, '$1****$2') // const hiddenPhoneNumber = phoneNumber.replace(/^(\d{3})\d{4}(\d{4})$/, '$1****$2')
return h('div', hiddenPhoneNumber) // return h('div', hiddenPhoneNumber)
} else { // } else {
return h('div', record.customNid) // return h('div', record.customNid)
} // }
} // }
}, },
{ {
title: '报名状态', title: '报名状态',

Loading…
Cancel
Save