From ff779873e656baeb99b410f5f138154eb8718a6e Mon Sep 17 00:00:00 2001 From: zhuangdashia Date: Wed, 19 Nov 2025 14:16:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=A5=E9=94=80=E5=A1=AB=E6=8A=A5=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2+=E5=BD=95=E5=85=A5=E6=98=8E=E7=BB=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2:=E8=BA=AB=E4=BB=BD=E8=AF=81=E5=8F=B7+=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E5=8F=B7=20=E8=84=B1=E6=95=8F=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/mps/market/index.vue | 18 ++++++++++++++++-- .../src/views/report/detail-entry/index.vue | 18 ++++++++++++++++-- 2 files changed, 32 insertions(+), 4 deletions(-) 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',