|
|
@ -162,7 +162,7 @@ const ExamListPage = ({ history }: { history: any }) => { |
|
|
|
console.log('跳转到编辑页面,examId:', examId); |
|
|
|
console.log('跳转到编辑页面,examId:', examId); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const handleDetail = (examId: number)=>{ |
|
|
|
const handleDetail = (examId: number) => { |
|
|
|
sessionStorage.setItem('examId', String(examId)); |
|
|
|
sessionStorage.setItem('examId', String(examId)); |
|
|
|
history.push('/exam-detail'); |
|
|
|
history.push('/exam-detail'); |
|
|
|
console.log('跳转到答题情况,examId:', examId); |
|
|
|
console.log('跳转到答题情况,examId:', examId); |
|
|
@ -355,53 +355,56 @@ const ExamListPage = ({ history }: { history: any }) => { |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<div style={{marginBottom: 16}}> |
|
|
|
<div style={{ marginBottom: 16, display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}> |
|
|
|
<label>考试名称:</label> |
|
|
|
<div> |
|
|
|
<Input |
|
|
|
<label style={{ marginRight: 8 }}><b>考试名称:</b></label> |
|
|
|
placeholder="考试名称" |
|
|
|
<Input |
|
|
|
value={searchForm.examName} |
|
|
|
placeholder="请输入考试名称" |
|
|
|
onChange={(e) => |
|
|
|
value={searchForm.examName} |
|
|
|
setSearchForm({...searchForm, examName: e.target.value}) |
|
|
|
onChange={(e) => |
|
|
|
} |
|
|
|
setSearchForm({ ...searchForm, examName: e.target.value }) |
|
|
|
style={{width: 150, marginRight: 8}} |
|
|
|
} |
|
|
|
/> |
|
|
|
style={{ width: 200, marginRight: '30' }} |
|
|
|
<label>试卷名称:</label> |
|
|
|
/> |
|
|
|
<Input |
|
|
|
<label style={{ marginRight: 8 }}><b>试卷名称:</b></label> |
|
|
|
placeholder="试卷名称" |
|
|
|
<Input |
|
|
|
value={searchForm.paperName} |
|
|
|
placeholder="请输入试卷名称" |
|
|
|
onChange={(e) => |
|
|
|
value={searchForm.paperName} |
|
|
|
setSearchForm({...searchForm, paperName: e.target.value}) |
|
|
|
onChange={(e) => |
|
|
|
} |
|
|
|
setSearchForm({ ...searchForm, paperName: e.target.value }) |
|
|
|
style={{width: 150, marginRight: 8}} |
|
|
|
} |
|
|
|
/> |
|
|
|
style={{ width: 200, marginRight: '30' }} |
|
|
|
<label>监管行业:</label> |
|
|
|
/> |
|
|
|
<Select |
|
|
|
<label style={{ marginRight: 8 }}><b>监管行业:</b></label> |
|
|
|
placeholder="监管行业" |
|
|
|
<Select |
|
|
|
value={searchForm.regulatedIndustry} |
|
|
|
placeholder="监管行业" |
|
|
|
onChange={(value) => |
|
|
|
value={searchForm.regulatedIndustry} |
|
|
|
setSearchForm({...searchForm, regulatedIndustry: value}) |
|
|
|
onChange={(value) => |
|
|
|
} |
|
|
|
setSearchForm({ ...searchForm, regulatedIndustry: value }) |
|
|
|
style={{width: 150, marginRight: 8}} |
|
|
|
} |
|
|
|
> |
|
|
|
style={{ width: 200, marginRight: '30' }} |
|
|
|
<Option key="" value="">全部</Option> |
|
|
|
> |
|
|
|
{industryOptions.map(option => ( |
|
|
|
<Option key="" value="">全部</Option> |
|
|
|
<Option key={option.value} value={option.value}> |
|
|
|
{industryOptions.map(option => ( |
|
|
|
{option.label} |
|
|
|
<Option key={option.value} value={option.value}> |
|
|
|
</Option> |
|
|
|
{option.label} |
|
|
|
))} |
|
|
|
</Option> |
|
|
|
</Select> |
|
|
|
))} |
|
|
|
<label>考试有效时间:</label> |
|
|
|
</Select> |
|
|
|
<DatePicker |
|
|
|
<label style={{ marginRight: 8 }}><b>考试有效时间:</b></label> |
|
|
|
value={searchForm.validTime} // 使用 Moment 类型
|
|
|
|
<DatePicker |
|
|
|
onChange={(value: Moment | null) => |
|
|
|
value={searchForm.validTime} // 使用 Moment 类型
|
|
|
|
setSearchForm({...searchForm, validTime: value}) |
|
|
|
onChange={(value: Moment | null) => |
|
|
|
} |
|
|
|
setSearchForm({ ...searchForm, validTime: value }) |
|
|
|
style={{marginRight: 8}} |
|
|
|
} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<Button onClick={handleReset}>重置</Button> |
|
|
|
</div> |
|
|
|
<Button onClick={() => handleSearch(1)} type="primary" style={{marginLeft: 8}}> |
|
|
|
<div> |
|
|
|
查询 |
|
|
|
<Button onClick={handleReset}>重置</Button> |
|
|
|
</Button> |
|
|
|
<Button onClick={() => handleSearch(1)} type="primary" style={{ marginLeft: 8 }}> |
|
|
|
|
|
|
|
查询 |
|
|
|
|
|
|
|
</Button> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style={{ marginBottom: 16, textAlign: "right" }}> |
|
|
|
<div style={{ marginBottom: 16, textAlign: "right" }}> |
|
|
|
<Button onClick={handleDeleteSelected} danger> |
|
|
|
<Button onClick={handleDeleteSelected} danger> |
|
|
|