feat: implement participating companies and jobs tabs in outdoor fair detail
- Add ParticipatingCompaniesTab component to manage participating companies. - Add ParticipatingJobsTab component to manage jobs associated with participating companies. - Remove StatisticsTab component as it is no longer needed. - Update OutdoorFairDetail to include new tabs for participating companies and jobs. - Modify API services to support fetching and managing participating companies and jobs. - Update types to reflect changes in job and company data structures.
This commit is contained in:
@@ -125,7 +125,16 @@ const OutdoorFairList: React.FC = () => {
|
||||
title: '绑定场地',
|
||||
dataIndex: 'venueName',
|
||||
ellipsis: true,
|
||||
hideInSearch: true,
|
||||
valueType: 'select',
|
||||
fieldProps: {
|
||||
options: venueOptions,
|
||||
allowClear: true,
|
||||
showSearch: true,
|
||||
optionFilterProp: 'label',
|
||||
},
|
||||
search: {
|
||||
transform: (value) => ({ venueId: value }),
|
||||
},
|
||||
render: (_, record) =>
|
||||
record.venueId && record.venueName ? (
|
||||
<Button
|
||||
@@ -177,7 +186,11 @@ const OutdoorFairList: React.FC = () => {
|
||||
{
|
||||
title: '线上申请',
|
||||
dataIndex: 'onlineApply',
|
||||
hideInSearch: true,
|
||||
valueType: 'select',
|
||||
valueEnum: {
|
||||
'true': { text: '是' },
|
||||
'false': { text: '否' },
|
||||
},
|
||||
render: (_, record) => (record.onlineApply ? '是' : '否'),
|
||||
},
|
||||
{
|
||||
@@ -255,6 +268,7 @@ const OutdoorFairList: React.FC = () => {
|
||||
fairType: params.fairType,
|
||||
region: params.region,
|
||||
venueId: params.venueId,
|
||||
onlineApply: params.onlineApply,
|
||||
} as OutdoorFairListParams);
|
||||
return { data: res.rows, total: res.total, success: true };
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user