招聘会三个模块开发
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
deleteJobFair,
|
||||
} from '@/services/jobportal/indoorJobFair';
|
||||
import type { JobFairItem, JobFairForm } from '@/services/jobportal/indoorJobFair';
|
||||
import FairBoothModal from './FairBoothModal';
|
||||
|
||||
interface Props {
|
||||
fairId: number;
|
||||
@@ -22,6 +23,8 @@ const FairManageTab: React.FC<Props> = ({ fairInfo }) => {
|
||||
const actionRef = useRef<ActionType>();
|
||||
const [modalOpen, setModalOpen] = useState(false);
|
||||
const [editingFair, setEditingFair] = useState<JobFairItem | null>(null);
|
||||
const [boothModalOpen, setBoothModalOpen] = useState(false);
|
||||
const [boothFair, setBoothFair] = useState<JobFairItem | null>(null);
|
||||
|
||||
const statusMap: Record<string, { text: string; color: string }> = {
|
||||
pending: { text: '筹备中', color: 'default' },
|
||||
@@ -51,7 +54,7 @@ const FairManageTab: React.FC<Props> = ({ fairInfo }) => {
|
||||
width: 200,
|
||||
render: (_, record) => [
|
||||
<Button key="booth" type="link" size="small" icon={<ApartmentOutlined />}
|
||||
onClick={() => message.info('展位管理功能开发中')}
|
||||
onClick={() => { setBoothFair(record); setBoothModalOpen(true); }}
|
||||
>展位管理</Button>,
|
||||
<Button key="edit" type="link" size="small" icon={<FormOutlined />}
|
||||
hidden={!access.hasPerms('cms:indoorJobFair:edit')}
|
||||
@@ -140,6 +143,12 @@ const FairManageTab: React.FC<Props> = ({ fairInfo }) => {
|
||||
<ProFormText name="startDate" label="开始日期" rules={[{ required: true, message: '请输入开始日期' }]} />
|
||||
<ProFormText name="endDate" label="结束日期" rules={[{ required: true, message: '请输入结束日期' }]} />
|
||||
</ModalForm>
|
||||
|
||||
<FairBoothModal
|
||||
fair={boothFair}
|
||||
open={boothModalOpen}
|
||||
onClose={() => setBoothModalOpen(false)}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user