营销填报页面+录入明细页面:身份证号+手机号 脱敏显示
This commit is contained in:
parent
e7bdeaf30c
commit
ff779873e6
@ -192,7 +192,14 @@ const {
|
|||||||
width: 180,
|
width: 180,
|
||||||
minWidth: 120,
|
minWidth: 120,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
resizable: true
|
resizable: true,
|
||||||
|
render(row) {
|
||||||
|
// 身份证号脱敏:显示前6位和后4位,中间用星号替代
|
||||||
|
if (row.custId && row.custId.length === 18) {
|
||||||
|
return row.custId.replace(/^(\d{6})\d+([\dXx]{4})$/, "$1********$2")
|
||||||
|
}
|
||||||
|
return row.custId || '';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'custName',
|
key: 'custName',
|
||||||
@ -217,7 +224,14 @@ const {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
minWidth: 120,
|
minWidth: 120,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
resizable: true
|
resizable: true,
|
||||||
|
render(row) {
|
||||||
|
// 手机号脱敏:保留前3位和后4位
|
||||||
|
if (row.custPhoneNo) {
|
||||||
|
return row.custPhoneNo.replace(/^(\d{3})\d+(\d{4})$/, "$1****$2")
|
||||||
|
}
|
||||||
|
return row.custPhoneNo || '';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'magneticCardId',
|
key: 'magneticCardId',
|
||||||
|
|||||||
@ -189,7 +189,14 @@ const {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
minWidth: 120,
|
minWidth: 120,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
resizable: true
|
resizable: true,
|
||||||
|
render(row) {
|
||||||
|
// 身份证号脱敏:显示前6位和后4位,中间用星号替代
|
||||||
|
if (row.custId && row.custId.length === 18) {
|
||||||
|
return row.custId.replace(/^(\d{6})\d+([\dXx]{4})$/, "$1********$2")
|
||||||
|
}
|
||||||
|
return row.custId || '';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'custName',
|
key: 'custName',
|
||||||
@ -213,7 +220,14 @@ const {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
minWidth: 120,
|
minWidth: 120,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
resizable: true
|
resizable: true,
|
||||||
|
render(row) {
|
||||||
|
// 手机号脱敏:保留前3位和后4位
|
||||||
|
if (row.phone) {
|
||||||
|
return row.phone.replace(/^(\d{3})\d+(\d{4})$/, "$1****$2")
|
||||||
|
}
|
||||||
|
return row.phone || '';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'magneticCardId',
|
key: 'magneticCardId',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user