|
@@ -65,7 +65,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
dataIndex: 'account',
|
|
|
title: '帐号',
|
|
|
width: 116,
|
|
|
- aligen: 'center',
|
|
|
+ align: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } })
|
|
|
},
|
|
|
{
|
|
@@ -80,7 +80,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
</div>
|
|
|
),
|
|
|
width: 86,
|
|
|
- aligen: 'center',
|
|
|
+ align: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } })
|
|
|
},
|
|
|
{
|
|
@@ -89,7 +89,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
title: '状态',
|
|
|
filters: true,
|
|
|
width: 82,
|
|
|
- aligen: 'center',
|
|
|
+ align: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
filterMultiple: false,
|
|
|
valueEnum: {
|
|
@@ -102,7 +102,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
key: 'gender',
|
|
|
title: '性别',
|
|
|
width: 72,
|
|
|
- aligen: 'center',
|
|
|
+ align: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
render: (_, { gender }) => {
|
|
|
return <span>{genderEum[gender]}</span>
|
|
@@ -113,7 +113,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
key: 'organizationalStructureID',
|
|
|
title: '组织架构',
|
|
|
width: 146,
|
|
|
- aligen: 'center',
|
|
|
+ align: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: (_, record) => record.organizationalStructure?.name
|
|
|
},
|
|
@@ -122,7 +122,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
key: 'institutionID',
|
|
|
title: '所属企事业单位',
|
|
|
width: 286,
|
|
|
- aligen: 'center',
|
|
|
+ align: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: (_, record) => record.institution.name
|
|
|
},
|
|
@@ -131,7 +131,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
key: 'phone',
|
|
|
title: '手机',
|
|
|
width: 116,
|
|
|
- aligen: 'center',
|
|
|
+ align: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } })
|
|
|
},
|
|
|
{
|
|
@@ -139,7 +139,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
key: 'createdTime',
|
|
|
title: '创建时间',
|
|
|
width: 106,
|
|
|
- aligen: 'center',
|
|
|
+ align: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: text => dayjs(text).format('YYYY-MM-DD')
|
|
|
},
|
|
@@ -148,6 +148,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
key: 'created',
|
|
|
title: '创建者',
|
|
|
width: 116,
|
|
|
+ align: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: (_, record) => record?.created?.name
|
|
|
},
|
|
@@ -157,6 +158,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
title: '账号类型',
|
|
|
filters: true,
|
|
|
width: 96,
|
|
|
+ align: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
filterMultiple: false,
|
|
|
valueEnum: accountTypeList.reduce((prev, curr) => {
|
|
@@ -171,7 +173,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
title: '操作',
|
|
|
dataIndex: 'operation',
|
|
|
width: 61,
|
|
|
- aligen: 'center',
|
|
|
+ align: 'center',
|
|
|
onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
render: (_, record) => (
|
|
|
<div className="divide-x divide-bg-gray-400 flex flex-row justify-center">
|