样式修改

main
hujunpeng 3 months ago
parent 86e2080a1e
commit c5862c589d
  1. 10
      packages/examination/src/views/exam-online/compoents/ExamPaperAnalysisDetailPage.tsx
  2. 5
      packages/examination/src/views/question/questionAdd.tsx

@ -112,14 +112,12 @@ const ExamPaperAnalysisDetailPage: React.FC<RouteComponentProps> = ({history}) =
return ( return (
<div style={{padding: 20}}> <div style={{padding: 20}}>
<ESBreadcrumbComponent url="/exam-statistics" previousText={"考试统计"} currentText={"试卷分析"} />
{paperData && ( {paperData && (
<> <div>
{/* 第一行:试卷名称 */} {/* 第一行:试卷名称 */}
<Row gutter={16}> <Row gutter={16}>
<Col span={24}> <Col span={24}>
<Title level={3}>{paperData.paperName}</Title> <Title level={3}>{paperData.paperName}</Title>
<Button onClick={()=>handleGoBack()}></Button>
</Col> </Col>
</Row> </Row>
{/* 第二行:QuestionComponent 标签 */} {/* 第二行:QuestionComponent 标签 */}
@ -135,9 +133,13 @@ const ExamPaperAnalysisDetailPage: React.FC<RouteComponentProps> = ({history}) =
<ReactECharts option={getBarChartOption(paperData.questionAccuracyData)}/> <ReactECharts option={getBarChartOption(paperData.questionAccuracyData)}/>
</Col> </Col>
</Row> </Row>
</> </div>
)} )}
<div style={{display: 'flex', justifyContent: 'flex-end'}}>
<Button onClick={() => handleGoBack()}></Button>
</div> </div>
</div>
); );
}; };

@ -2,6 +2,7 @@ import React, { Component } from "react";
import { Form, Input, Button, Radio, Checkbox, Select, message } from "antd"; import { Form, Input, Button, Radio, Checkbox, Select, message } from "antd";
import { dictionary } from "api/dict/index"; import { dictionary } from "api/dict/index";
import { addQuestion, findIndustry } from "api/question"; import { addQuestion, findIndustry } from "api/question";
import { CloseCircleOutlined } from '@ant-design/icons';
import * as XLSX from "xlsx"; import * as XLSX from "xlsx";
const { Option } = Select; const { Option } = Select;
@ -282,6 +283,7 @@ class QuestionAdd extends Component<any, States> {
{formIds.map((formId, index) => ( {formIds.map((formId, index) => (
<div key={formId} style={{ marginBottom: 30 }}> <div key={formId} style={{ marginBottom: 30 }}>
<div style={{ display: "flex" }}> <div style={{ display: "flex" }}>
<div style={{ display: "flex", flex: 1, justifyContent: "flex-start" }}>
<Form.Item name={`questionTypes_${formId}`}> <Form.Item name={`questionTypes_${formId}`}>
<Radio.Group <Radio.Group
onChange={(e) => this.handleQuestionTypeChange(formId, e.target.value)} onChange={(e) => this.handleQuestionTypeChange(formId, e.target.value)}
@ -342,10 +344,11 @@ class QuestionAdd extends Component<any, States> {
)} )}
</Select> </Select>
</Form.Item> </Form.Item>
</div>
<Form.Item> <Form.Item>
{index > 0 && ( {index > 0 && (
<Button type="link" onClick={() => this.handleDeleteQuestion(formId)}> <Button type="link" onClick={() => this.handleDeleteQuestion(formId)}>
X <CloseCircleOutlined />
</Button> </Button>
)} )}
</Form.Item> </Form.Item>

Loading…
Cancel
Save