|
@@ -114,37 +114,46 @@
|
|
|
{
|
|
|
title: t('routes.staff.userName'),
|
|
|
dataIndex: 'name',
|
|
|
+ ellipsis: true,
|
|
|
width: 120,
|
|
|
},
|
|
|
{
|
|
|
title: '人员编号',
|
|
|
- dataIndex: 'userName',
|
|
|
+ dataIndex: 'ryNo',
|
|
|
+ ellipsis: true,
|
|
|
width: 150,
|
|
|
},
|
|
|
{
|
|
|
title: '人员ID',
|
|
|
dataIndex: 'ryId',
|
|
|
- fixed: 'left',
|
|
|
- width: 60,
|
|
|
+ ellipsis: true,
|
|
|
+ width: 100,
|
|
|
},
|
|
|
{
|
|
|
title: '手机',
|
|
|
+ ellipsis: true,
|
|
|
dataIndex: 'phone',
|
|
|
- width: 160,
|
|
|
+ width: 100,
|
|
|
},
|
|
|
{
|
|
|
title: '身份证',
|
|
|
- dataIndex: 'carId',
|
|
|
- width: 100,
|
|
|
+ ellipsis: true,
|
|
|
+ dataIndex: 'idCard',
|
|
|
+ width: 160,
|
|
|
+ customRender: ({ record }) => {
|
|
|
+ return IdNumber(record.idCard);
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '部门',
|
|
|
- dataIndex: 'sysUserName',
|
|
|
+ ellipsis: true,
|
|
|
+ dataIndex: 'platformName',
|
|
|
width: 80,
|
|
|
},
|
|
|
{
|
|
|
title: '注册时间',
|
|
|
dataIndex: 'createTime',
|
|
|
+ ellipsis: true,
|
|
|
slots: { customRender: 'createTime' },
|
|
|
width: 130,
|
|
|
},
|
|
@@ -305,6 +314,10 @@
|
|
|
},
|
|
|
});
|
|
|
}
|
|
|
+ function IdNumber(num){
|
|
|
+ if (!num) return "";
|
|
|
+ return num.replace(/(?<=\d{3})\d{12}(?=\d{2})/,"************")
|
|
|
+ }
|
|
|
return {
|
|
|
registerTable,
|
|
|
registerDetail,
|