考试安排页面

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

Loading…
Cancel
Save