|
@@ -62,14 +62,16 @@ const Staff: React.FC<ListProps> = ({
|
|
|
{
|
|
|
dataIndex: 'account',
|
|
|
title: '帐号',
|
|
|
- width: 100,
|
|
|
+ width: 116,
|
|
|
+ aligen: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } })
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'name',
|
|
|
title: '姓名',
|
|
|
renderText: (text, record) => `${text}${record.ID === managerID ? ' (管理员) ' : null}`,
|
|
|
- width: 70,
|
|
|
+ width: 86,
|
|
|
+ aligen: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } })
|
|
|
},
|
|
|
{
|
|
@@ -77,7 +79,8 @@ const Staff: React.FC<ListProps> = ({
|
|
|
key: 'enable',
|
|
|
title: '状态',
|
|
|
filters: true,
|
|
|
- width: 66,
|
|
|
+ width: 82,
|
|
|
+ aligen: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
filterMultiple: false,
|
|
|
valueEnum: {
|
|
@@ -89,7 +92,8 @@ const Staff: React.FC<ListProps> = ({
|
|
|
dataIndex: 'gender',
|
|
|
key: 'gender',
|
|
|
title: '性别',
|
|
|
- width: 56,
|
|
|
+ width: 72,
|
|
|
+ aligen: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
render: (_, { gender }) => {
|
|
|
return <span>{genderEum[gender]}</span>
|
|
@@ -99,7 +103,8 @@ const Staff: React.FC<ListProps> = ({
|
|
|
dataIndex: 'organizationalStructureID',
|
|
|
key: 'organizationalStructureID',
|
|
|
title: '组织架构',
|
|
|
- width: 130,
|
|
|
+ width: 146,
|
|
|
+ aligen: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: (_, record) => record.organizationalStructure?.name
|
|
|
},
|
|
@@ -107,7 +112,8 @@ const Staff: React.FC<ListProps> = ({
|
|
|
dataIndex: 'institutionID',
|
|
|
key: 'institutionID',
|
|
|
title: '所属企事业单位',
|
|
|
- width: 270,
|
|
|
+ width: 286,
|
|
|
+ aligen: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: (_, record) => record.institution.name
|
|
|
},
|
|
@@ -115,14 +121,16 @@ const Staff: React.FC<ListProps> = ({
|
|
|
dataIndex: 'phone',
|
|
|
key: 'phone',
|
|
|
title: '手机',
|
|
|
- width: 100,
|
|
|
+ width: 116,
|
|
|
+ aligen: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } })
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'createdTime',
|
|
|
key: 'createdTime',
|
|
|
title: '创建时间',
|
|
|
- width: 90,
|
|
|
+ width: 106,
|
|
|
+ aligen: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: text => dayjs(text).format('YYYY-MM-DD')
|
|
|
},
|
|
@@ -130,7 +138,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
dataIndex: 'created',
|
|
|
key: 'created',
|
|
|
title: '创建者',
|
|
|
- width: 100,
|
|
|
+ width: 116,
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: (_, record) => record?.created?.name
|
|
|
},
|
|
@@ -139,7 +147,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
key: 'accountType',
|
|
|
title: '账号类型',
|
|
|
filters: true,
|
|
|
- width: 80,
|
|
|
+ width: 96,
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
filterMultiple: false,
|
|
|
valueEnum: accountTypeList.reduce((prev, curr) => {
|
|
@@ -153,7 +161,8 @@ const Staff: React.FC<ListProps> = ({
|
|
|
{
|
|
|
title: '操作',
|
|
|
dataIndex: 'operation',
|
|
|
- width: 45,
|
|
|
+ width: 61,
|
|
|
+ aligen: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
render: (_, record) => (
|
|
|
<div className="divide-x divide-bg-gray-400 flex flex-row">
|