From 6d4224191879d8ef4d0f337f26abd69c1140607a Mon Sep 17 00:00:00 2001 From: xyx Date: Mon, 13 Jul 2026 14:29:01 +0800 Subject: [PATCH] fix: enhance emergency contact phone display with masking and view option --- apps/admin/src/pages/Students/index.tsx | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/apps/admin/src/pages/Students/index.tsx b/apps/admin/src/pages/Students/index.tsx index e5bfdc4..0eca35a 100644 --- a/apps/admin/src/pages/Students/index.tsx +++ b/apps/admin/src/pages/Students/index.tsx @@ -322,7 +322,28 @@ const StudentsPage: React.FC = () => { }, { title: '民族', dataIndex: 'ethnicity', width: 90 }, { title: '紧急联系人', dataIndex: 'emergencyContact', width: 100 }, - { title: '紧急联系人电话', dataIndex: 'emergencyPhone', width: 130 }, + { + title: '紧急联系人电话', + dataIndex: 'emergencyPhone', + width: 150, + render: (v: string, record: any) => { + if (!v) return '-'; + return ( + + {maskPhone(v)} + + + ); + }, + }, { title: '所属机构', dataIndex: 'organization',