diff --git a/cds-fontend-2025.V1/src/views/mps/market/index.vue b/cds-fontend-2025.V1/src/views/mps/market/index.vue index c63899e..4b463c7 100644 --- a/cds-fontend-2025.V1/src/views/mps/market/index.vue +++ b/cds-fontend-2025.V1/src/views/mps/market/index.vue @@ -192,7 +192,14 @@ const { width: 180, minWidth: 120, 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', @@ -217,7 +224,14 @@ const { align: 'center', minWidth: 120, 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', diff --git a/cds-fontend-2025.V1/src/views/report/detail-entry/index.vue b/cds-fontend-2025.V1/src/views/report/detail-entry/index.vue index d34e924..8bac99a 100644 --- a/cds-fontend-2025.V1/src/views/report/detail-entry/index.vue +++ b/cds-fontend-2025.V1/src/views/report/detail-entry/index.vue @@ -189,7 +189,14 @@ const { align: 'center', minWidth: 120, 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', @@ -213,7 +220,14 @@ const { align: 'center', minWidth: 120, 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',