|
|
|
@ -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> |
|
|
|
|