forked from wangziqi/gongxue-base
fix: enhance emergency contact phone display with masking and view option
This commit is contained in:
@@ -322,7 +322,28 @@ const StudentsPage: React.FC = () => {
|
|||||||
},
|
},
|
||||||
{ title: '民族', dataIndex: 'ethnicity', width: 90 },
|
{ title: '民族', dataIndex: 'ethnicity', width: 90 },
|
||||||
{ title: '紧急联系人', dataIndex: 'emergencyContact', width: 100 },
|
{ title: '紧急联系人', dataIndex: 'emergencyContact', width: 100 },
|
||||||
{ title: '紧急联系人电话', dataIndex: 'emergencyPhone', width: 130 },
|
{
|
||||||
|
title: '紧急联系人电话',
|
||||||
|
dataIndex: 'emergencyPhone',
|
||||||
|
width: 150,
|
||||||
|
render: (v: string, record: any) => {
|
||||||
|
if (!v) return '-';
|
||||||
|
return (
|
||||||
|
<span>
|
||||||
|
<span style={{ marginRight: 4 }}>{maskPhone(v)}</span>
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
size="small"
|
||||||
|
style={{ padding: '8px 4px' }}
|
||||||
|
onClick={() => handleViewSensitive(record.id, '紧急联系人电话', v)}
|
||||||
|
title="点击查看完整号码"
|
||||||
|
>
|
||||||
|
<EyeOutlined style={{ fontSize: 12, color: '#999' }} />
|
||||||
|
</Button>
|
||||||
|
</span>
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '所属机构',
|
title: '所属机构',
|
||||||
dataIndex: 'organization',
|
dataIndex: 'organization',
|
||||||
|
|||||||
Reference in New Issue
Block a user