|
@@ -62,16 +62,15 @@ const Staff: React.FC<ListProps> = ({
|
|
|
{
|
|
|
dataIndex: 'account',
|
|
|
title: '帐号',
|
|
|
- width: 100
|
|
|
+ width: 100,
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } })
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'name',
|
|
|
title: '姓名',
|
|
|
-<<<<<<< HEAD
|
|
|
- renderText: (text, record) => `${text}${record.ID === managerID ? ' (管理员) ' : null}`
|
|
|
-=======
|
|
|
- width: 70
|
|
|
->>>>>>> ba83460... feat: 调整表格、表单列宽
|
|
|
+ renderText: (text, record) => `${text}${record.ID === managerID ? ' (管理员) ' : null}`,
|
|
|
+ width: 70,
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } })
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'enable',
|
|
@@ -79,6 +78,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
title: '状态',
|
|
|
filters: true,
|
|
|
width: 66,
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
filterMultiple: false,
|
|
|
valueEnum: {
|
|
|
true: { text: '启用', status: 'Success' },
|
|
@@ -90,6 +90,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
key: 'gender',
|
|
|
title: '性别',
|
|
|
width: 56,
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
render: (_, { gender }) => {
|
|
|
return <span>{genderEum[gender]}</span>
|
|
|
}
|
|
@@ -99,6 +100,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
key: 'organizationalStructureID',
|
|
|
title: '组织架构',
|
|
|
width: 130,
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: (_, record) => record.organizationalStructure?.name
|
|
|
},
|
|
|
{
|
|
@@ -106,19 +108,22 @@ const Staff: React.FC<ListProps> = ({
|
|
|
key: 'institutionID',
|
|
|
title: '所属企事业单位',
|
|
|
width: 270,
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: (_, record) => record.institution.name
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'phone',
|
|
|
key: 'phone',
|
|
|
title: '手机',
|
|
|
- width: 100
|
|
|
+ width: 100,
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } })
|
|
|
},
|
|
|
{
|
|
|
dataIndex: 'createdTime',
|
|
|
key: 'createdTime',
|
|
|
title: '创建时间',
|
|
|
width: 90,
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: text => dayjs(text).format('YYYY-MM-DD')
|
|
|
},
|
|
|
{
|
|
@@ -126,6 +131,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
key: 'created',
|
|
|
title: '创建者',
|
|
|
width: 100,
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
renderText: (_, record) => record?.created?.name
|
|
|
},
|
|
|
{
|
|
@@ -134,6 +140,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
title: '账号类型',
|
|
|
filters: true,
|
|
|
width: 80,
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
filterMultiple: false,
|
|
|
valueEnum: accountTypeList.reduce((prev, curr) => {
|
|
|
const items = { ...prev }
|
|
@@ -147,6 +154,7 @@ const Staff: React.FC<ListProps> = ({
|
|
|
title: '操作',
|
|
|
dataIndex: 'operation',
|
|
|
width: 45,
|
|
|
+ onHeaderCell: () => ({ style: { textAlign: 'center' } }),
|
|
|
render: (_, record) => (
|
|
|
<div className="divide-x divide-bg-gray-400 flex flex-row">
|
|
|
<div
|
|
@@ -202,7 +210,6 @@ const Staff: React.FC<ListProps> = ({
|
|
|
onSearch: val => setState({ ...state, params: { ...state.params, search: val } })
|
|
|
},
|
|
|
actions: [
|
|
|
-<<<<<<< HEAD
|
|
|
state.total && state.total > memberTotal ? (
|
|
|
<Tooltip placement="top" title="成员已满,无法新增">
|
|
|
<Button type="primary" disabled>
|
|
@@ -228,25 +235,6 @@ const Staff: React.FC<ListProps> = ({
|
|
|
添加人员
|
|
|
</Button>
|
|
|
)
|
|
|
-=======
|
|
|
- <Button
|
|
|
- type="primary"
|
|
|
- onClick={() => {
|
|
|
- setState({
|
|
|
- ...state,
|
|
|
- visible: true,
|
|
|
- currentModalType: ModalType.ADD,
|
|
|
- institutionDisable: true,
|
|
|
- title: '',
|
|
|
- defaultFormData: {
|
|
|
- institutionID: dataID,
|
|
|
- institutionDisable: true
|
|
|
- }
|
|
|
- })
|
|
|
- }}>
|
|
|
- 添加人员
|
|
|
- </Button>
|
|
|
->>>>>>> dee655f... feat: 企事业单位详情内tab页下表格高度优化
|
|
|
]
|
|
|
}}
|
|
|
/>
|