|
@@ -62,6 +62,7 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
title: '账号',
|
|
|
width: 116,
|
|
|
align: 'center',
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
render: (name, record) => (
|
|
|
<div
|
|
|
className="text-primary cursor-pointer hover:text-hex-967bbd"
|
|
@@ -88,7 +89,8 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
key: 'name',
|
|
|
title: '名称',
|
|
|
width: 86,
|
|
|
- align: 'center'
|
|
|
+ align: 'center',
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } })
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'enable',
|
|
@@ -98,6 +100,7 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
align: 'center',
|
|
|
filters: true,
|
|
|
filterMultiple: false,
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
valueEnum: {
|
|
|
true: { text: '启用', status: 'Success' },
|
|
|
false: { text: '禁用', status: 'Error' }
|
|
@@ -109,6 +112,7 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
title: '性别',
|
|
|
width: 56,
|
|
|
align: 'center',
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
render: (_, { gender }) => {
|
|
|
return <span>{genderEum[gender]}</span>
|
|
|
}
|
|
@@ -119,6 +123,7 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
title: '组织架构',
|
|
|
width: 146,
|
|
|
align: 'center',
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: (_, record) => record.organizationalStructure?.name
|
|
|
},
|
|
|
{
|
|
@@ -127,6 +132,7 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
title: '所属企事业单位',
|
|
|
width: 286,
|
|
|
align: 'center',
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: (_, record) => record.institution.name
|
|
|
},
|
|
|
{
|
|
@@ -135,6 +141,7 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
width: 106,
|
|
|
align: 'center',
|
|
|
title: '创建时间',
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: text => dayjs(text).format('YYYY-MM-DD')
|
|
|
},
|
|
|
{
|
|
@@ -143,6 +150,7 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
title: '创建者',
|
|
|
width: 116,
|
|
|
align: 'center',
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: (_, record) => record?.created?.name
|
|
|
},
|
|
|
{
|
|
@@ -153,6 +161,7 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
align: 'center',
|
|
|
filters: true,
|
|
|
filterMultiple: false,
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
valueEnum: accountTypeList.reduce((prev, curr) => {
|
|
|
const items = { ...prev }
|
|
|
items[curr.value] = {
|
|
@@ -166,6 +175,7 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
dataIndex: 'operation',
|
|
|
width: 61,
|
|
|
align: 'center',
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
render: (_, record) => (
|
|
|
<div className="divide-x divide-bg-gray-400 flex flex-row justify-center">
|
|
|
<div
|