From c5862c589d28a2b74e2ec8484cc68d3f45e7929b Mon Sep 17 00:00:00 2001 From: hujunpeng Date: Fri, 28 Mar 2025 10:59:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../compoents/ExamPaperAnalysisDetailPage.tsx | 20 +-- .../src/views/question/questionAdd.tsx | 121 +++++++++--------- 2 files changed, 73 insertions(+), 68 deletions(-) diff --git a/packages/examination/src/views/exam-online/compoents/ExamPaperAnalysisDetailPage.tsx b/packages/examination/src/views/exam-online/compoents/ExamPaperAnalysisDetailPage.tsx index 252bceb..24f0cdc 100644 --- a/packages/examination/src/views/exam-online/compoents/ExamPaperAnalysisDetailPage.tsx +++ b/packages/examination/src/views/exam-online/compoents/ExamPaperAnalysisDetailPage.tsx @@ -111,33 +111,35 @@ const ExamPaperAnalysisDetailPage: React.FC = ({history}) = }; return ( -
- +
{paperData && ( - <> +
{/* 第一行:试卷名称 */} 试卷名称:{paperData.paperName} - {/* 第二行:QuestionComponent 标签 */} - + - + {/* 第三行:柱状图 */} - +

准确率分析

- +
- +
)} +
+ +
+ ); }; diff --git a/packages/examination/src/views/question/questionAdd.tsx b/packages/examination/src/views/question/questionAdd.tsx index 24eff92..920b6e9 100644 --- a/packages/examination/src/views/question/questionAdd.tsx +++ b/packages/examination/src/views/question/questionAdd.tsx @@ -2,6 +2,7 @@ import React, { Component } from "react"; import { Form, Input, Button, Radio, Checkbox, Select, message } from "antd"; import { dictionary } from "api/dict/index"; import { addQuestion, findIndustry } from "api/question"; +import { CloseCircleOutlined } from '@ant-design/icons'; import * as XLSX from "xlsx"; const { Option } = Select; @@ -282,70 +283,72 @@ class QuestionAdd extends Component { {formIds.map((formId, index) => (
- - this.handleQuestionTypeChange(formId, e.target.value)} - > - 单选题 - 多选题 - - - - - - - + + - {serviceTypeDict && serviceTypeDict.length > 0? ( - (() => { - let rows = []; - for (let i = 0; i < serviceTypeDict.length; i++) { - const item = serviceTypeDict[i]; - rows.push( - - ); - } - return rows; - })() - ) : ( - - )} - - + + +
{index > 0 && ( )}