|
|
|
@ -24,7 +24,7 @@ const ExamDetailAnalysisPage: React.FC = () => { |
|
|
|
|
const [examName, setExamName] = useState(''); |
|
|
|
|
const [paperName, setPaperName] = useState(''); |
|
|
|
|
const [examArea, setExamArea] = useState(''); |
|
|
|
|
const [industry, setIndustry] = useState(''); |
|
|
|
|
const [industry, setIndustry] = useState(null); |
|
|
|
|
const [industryOptions, setIndustryOptions] = useState<{ value: string; label: string }[]>([]); |
|
|
|
|
const [tableData, setTableData] = useState<ExamDataItem[]>([]); |
|
|
|
|
const [pagination, setPagination] = useState({ |
|
|
|
@ -62,7 +62,7 @@ const ExamDetailAnalysisPage: React.FC = () => { |
|
|
|
|
setExamName(''); |
|
|
|
|
setPaperName(''); |
|
|
|
|
setExamArea(''); |
|
|
|
|
setIndustry(''); |
|
|
|
|
setIndustry(null); |
|
|
|
|
handleSearch(); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -70,7 +70,7 @@ const ExamDetailAnalysisPage: React.FC = () => { |
|
|
|
|
const param = { |
|
|
|
|
examName:examName, |
|
|
|
|
paperName:paperName, |
|
|
|
|
industry:industry, |
|
|
|
|
industry:!industry ? '' : industry, |
|
|
|
|
examArea:examArea, |
|
|
|
|
} |
|
|
|
|
const fetchData = async () => { |
|
|
|
@ -205,8 +205,8 @@ const ExamDetailAnalysisPage: React.FC = () => { |
|
|
|
|
value={industry} |
|
|
|
|
onChange={(value) => setIndustry(value)} |
|
|
|
|
style={{ width: 150 }} // 调整下拉框宽度
|
|
|
|
|
allowClear |
|
|
|
|
> |
|
|
|
|
<Option key="" value="">全部</Option> |
|
|
|
|
{industryOptions.map((option) => ( |
|
|
|
|
<Option key={option.value} value={option.value}> |
|
|
|
|
{option.label} |
|
|
|
|