考试安排页面

main
sunhonglei 4 months ago
parent c3318b1259
commit 3a3f55fd0f
  1. 24
      packages/examination/src/views/exam-online/compoents/ExamListPage.tsx

@ -355,30 +355,33 @@ const ExamListPage = ({ history }: { history: any }) => {
return (
<div>
<div style={{ marginBottom: 16 }}>
<div style={{marginBottom: 16}}>
<label>:</label>
<Input
placeholder="考试名称"
value={searchForm.examName}
onChange={(e) =>
setSearchForm({ ...searchForm, examName: e.target.value })
setSearchForm({...searchForm, examName: e.target.value})
}
style={{ width: 150, marginRight: 8 }}
style={{width: 150, marginRight: 8}}
/>
<label>:</label>
<Input
placeholder="试卷名称"
value={searchForm.paperName}
onChange={(e) =>
setSearchForm({ ...searchForm, paperName: e.target.value })
setSearchForm({...searchForm, paperName: e.target.value})
}
style={{ width: 150, marginRight: 8 }}
style={{width: 150, marginRight: 8}}
/>
<label>:</label>
<Select
placeholder="监管行业"
value={searchForm.regulatedIndustry}
onChange={(value) =>
setSearchForm({ ...searchForm, regulatedIndustry: value })
setSearchForm({...searchForm, regulatedIndustry: value})
}
style={{ width: 150, marginRight: 8 }}
style={{width: 150, marginRight: 8}}
>
<Option key="" value=""></Option>
{industryOptions.map(option => (
@ -387,15 +390,16 @@ const ExamListPage = ({ history }: { history: any }) => {
</Option>
))}
</Select>
<label>:</label>
<DatePicker
value={searchForm.validTime} // 使用 Moment 类型
onChange={(value: Moment | null) =>
setSearchForm({ ...searchForm, validTime: value })
setSearchForm({...searchForm, validTime: value})
}
style={{ marginRight: 8 }}
style={{marginRight: 8}}
/>
<Button onClick={handleReset}></Button>
<Button onClick={() => handleSearch(1)} type="primary" style={{ marginLeft: 8 }}>
<Button onClick={() => handleSearch(1)} type="primary" style={{marginLeft: 8}}>
</Button>
</div>

Loading…
Cancel
Save