|
@@ -60,6 +60,7 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
dataIndex: 'account',
|
|
|
key: 'account',
|
|
|
title: '账号',
|
|
|
+ width: 116,
|
|
|
render: (name, record) => (
|
|
|
<div
|
|
|
className="text-primary cursor-pointer hover:text-hex-967bbd"
|
|
@@ -84,12 +85,14 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
{
|
|
|
dataIndex: 'name',
|
|
|
key: 'name',
|
|
|
- title: '名称'
|
|
|
+ title: '名称',
|
|
|
+ width: 86
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'enable',
|
|
|
key: 'enable',
|
|
|
title: '状态',
|
|
|
+ width: 56,
|
|
|
filters: true,
|
|
|
filterMultiple: false,
|
|
|
valueEnum: {
|
|
@@ -101,6 +104,7 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
dataIndex: 'gender',
|
|
|
key: 'gender',
|
|
|
title: '性别',
|
|
|
+ width: 56,
|
|
|
render: (_, { gender }) => {
|
|
|
return <span>{genderEum[gender]}</span>
|
|
|
}
|
|
@@ -109,18 +113,20 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
dataIndex: 'organizationalStructureID',
|
|
|
key: 'organizationalStructureID',
|
|
|
title: '组织架构',
|
|
|
+ width: 146,
|
|
|
renderText: (_, record) => record.organizationalStructure?.name
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'institutionID',
|
|
|
key: 'institutionID',
|
|
|
title: '所属企事业单位',
|
|
|
- width: 120,
|
|
|
+ width: 286,
|
|
|
renderText: (_, record) => record.institution.name
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'createdTime',
|
|
|
key: 'createdTime',
|
|
|
+ width: 106,
|
|
|
title: '创建时间',
|
|
|
renderText: text => dayjs(text).format('YYYY-MM-DD')
|
|
|
},
|
|
@@ -128,12 +134,14 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
dataIndex: 'created',
|
|
|
key: 'created',
|
|
|
title: '创建者',
|
|
|
+ width: 116,
|
|
|
renderText: (_, record) => record?.created?.name
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'accountType',
|
|
|
key: 'accountType',
|
|
|
title: '账号类型',
|
|
|
+ width: 96,
|
|
|
filters: true,
|
|
|
filterMultiple: false,
|
|
|
valueEnum: accountTypeList.reduce((prev, curr) => {
|
|
@@ -147,6 +155,7 @@ const CompanyList: React.FC<ListProps> = ({ schema, dispatch, accountTypeList })
|
|
|
{
|
|
|
title: '操作',
|
|
|
dataIndex: 'operation',
|
|
|
+ width: 61,
|
|
|
render: (_, record) => (
|
|
|
<div className="divide-x divide-bg-gray-400 flex flex-row">
|
|
|
<div
|