修复招聘会前端交互与无障碍问题
This commit is contained in:
@@ -32,6 +32,15 @@ type ReviewTarget =
|
||||
record: API.OutdoorFairDetail.PostedJob;
|
||||
};
|
||||
|
||||
const REVIEW_STATUS_ENUM = {
|
||||
'0': { text: '待审核', status: 'Processing' },
|
||||
'1': { text: '已通过', status: 'Success' },
|
||||
'2': { text: '已驳回', status: 'Error' },
|
||||
};
|
||||
|
||||
const formatSearchDateTime = (value: any) =>
|
||||
value && typeof value.format === 'function' ? value.format('YYYY-MM-DD HH:mm:ss') : value;
|
||||
|
||||
const ParticipatingCompaniesTab: React.FC<Props> = ({ fairId }) => {
|
||||
const companyActionRef = useRef<ActionType>();
|
||||
const jobActionRef = useRef<ActionType>();
|
||||
@@ -264,11 +273,54 @@ const ParticipatingCompaniesTab: React.FC<Props> = ({ fairId }) => {
|
||||
current: params.current,
|
||||
pageSize: params.pageSize,
|
||||
companyName: params.companyName,
|
||||
reviewStatus: params.reviewStatus,
|
||||
startTime: formatSearchDateTime(params.startTime),
|
||||
endTime: formatSearchDateTime(params.endTime),
|
||||
});
|
||||
return { data: res.rows || [], total: res.total || 0, success: res.code === 200 };
|
||||
}}
|
||||
columns={[
|
||||
{ title: '企业名称', dataIndex: 'companyName', ellipsis: true },
|
||||
{
|
||||
title: '企业名称',
|
||||
dataIndex: 'companyName',
|
||||
ellipsis: true,
|
||||
fieldProps: {
|
||||
id: 'outdoor-participating-company-name-search',
|
||||
name: 'companyName',
|
||||
'aria-label': '企业名称',
|
||||
autoComplete: 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '报名开始时间',
|
||||
dataIndex: 'startTime',
|
||||
hideInTable: true,
|
||||
valueType: 'dateTime',
|
||||
fieldProps: {
|
||||
id: 'outdoor-participating-company-start-time-search',
|
||||
name: 'startTime',
|
||||
'aria-label': '报名开始时间',
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
search: {
|
||||
transform: (value) => ({ startTime: formatSearchDateTime(value) }),
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '报名结束时间',
|
||||
dataIndex: 'endTime',
|
||||
hideInTable: true,
|
||||
valueType: 'dateTime',
|
||||
fieldProps: {
|
||||
id: 'outdoor-participating-company-end-time-search',
|
||||
name: 'endTime',
|
||||
'aria-label': '报名结束时间',
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
search: {
|
||||
transform: (value) => ({ endTime: formatSearchDateTime(value) }),
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '行业',
|
||||
dataIndex: 'industry',
|
||||
@@ -298,9 +350,22 @@ const ParticipatingCompaniesTab: React.FC<Props> = ({ fairId }) => {
|
||||
{
|
||||
title: '审核状态',
|
||||
dataIndex: 'reviewStatus',
|
||||
hideInSearch: true,
|
||||
valueType: 'select',
|
||||
valueEnum: REVIEW_STATUS_ENUM,
|
||||
fieldProps: {
|
||||
id: 'outdoor-participating-company-review-status-search',
|
||||
name: 'reviewStatus',
|
||||
'aria-label': '审核状态',
|
||||
},
|
||||
render: (_, record) => renderReviewStatus(record.reviewStatus),
|
||||
},
|
||||
{
|
||||
title: '报名时间',
|
||||
dataIndex: 'registrationTime',
|
||||
valueType: 'dateTime',
|
||||
hideInSearch: true,
|
||||
width: 170,
|
||||
},
|
||||
{
|
||||
title: '展位号',
|
||||
dataIndex: 'boothNumber',
|
||||
|
||||
Reference in New Issue
Block a user