Commit ba8e83e7 by maolipeng

fix:ssssssssssss

parent 84416698
...@@ -36,6 +36,7 @@ import _ from "underscore"; ...@@ -36,6 +36,7 @@ import _ from "underscore";
import { Route, withRouter } from "react-router-dom"; import { Route, withRouter } from "react-router-dom";
import * as paperEmpty from '../../lottie/paperEmpty/data.json'; import * as paperEmpty from '../../lottie/paperEmpty/data.json';
import AddExam from "@/modules/teach-tool/examination-manager/AddExam"; import AddExam from "@/modules/teach-tool/examination-manager/AddExam";
import BatchGrade from "./components/BatchGrade";
const questionTypeEnum = { const questionTypeEnum = {
SINGLE_CHOICE: "单选题", SINGLE_CHOICE: "单选题",
...@@ -74,6 +75,7 @@ class OperatePaper extends Component { ...@@ -74,6 +75,7 @@ class OperatePaper extends Component {
selectQuestionModal: null, selectQuestionModal: null,
paperPreviewModal: null, paperPreviewModal: null,
quickSortModalVisible: false, // 快捷排序弹窗显隐 quickSortModalVisible: false, // 快捷排序弹窗显隐
batchSetGradeVisible: false, //批量设置题型分数
selectQuestionList: [], selectQuestionList: [],
currentOperate: "", currentOperate: "",
currentNav: "", currentNav: "",
...@@ -871,6 +873,16 @@ class OperatePaper extends Component { ...@@ -871,6 +873,16 @@ class OperatePaper extends Component {
> >
快捷排序 快捷排序
</Button> </Button>
<Button
className="choose-btn"
onClick={() => {
this.setState({
batchSetGradeVisible: true,
});
}}
>
批量设置分数
</Button>
</Space> </Space>
{questionCnt > 0 && ( {questionCnt > 0 && (
<div <div
...@@ -960,6 +972,9 @@ class OperatePaper extends Component { ...@@ -960,6 +972,9 @@ class OperatePaper extends Component {
/> />
)} )}
</Modal> </Modal>
<BatchGrade
visible={this.state.batchSetGradeVisible}
onClose={()=> this.setState({batchSetGradeVisible:false})}/>
</div> </div>
<Route <Route
path={`${match.url}/exam-operate-page`} path={`${match.url}/exam-operate-page`}
......
.batchgrade {
.content {
.item {
width: 512px;
height: 48px;
background: #F7F8F9;
font-size: 14px;
line-height: 48px;
font-weight: 400;
color: #333333;
padding-left: 16px;
}
.item:not(:last-of-type) {
margin-bottom: 8px;
}
}
}
\ No newline at end of file
import React, { useState} from "react";
import { Modal, Button, InputNumber } from 'antd';
import "./BatchGrade.less"
interface BatchGradeProps {
visible:boolean,
onClose: () => void,
}
export default function BatchGrade(props:BatchGradeProps) {
if (!props.visible) {
return ("")
}
function onOk() {
}
function onCancel() {
props.onClose()
}
const inputNumberStyle = {width:"57px",margin:"0 8px"}
return (
<Modal
className="batchgrade"
title="批量设置分数"
onCancel={onCancel}
onOk={onOk}
visible={props.visible}
maskClosable={false}
width={560}
>
<div className="content">
<div className="item">
【单选题】
<span>每题<InputNumber defaultValue={2} style={inputNumberStyle} /></span>
</div>
<div className="item">
【多选题】
<span>每题<InputNumber style={inputNumberStyle} /></span>
</div>
<div className="item">
【不定项选择题】
<span>每题<InputNumber style={inputNumberStyle} /></span>
</div>
<div className="item">
【判断题】
<span>每题<InputNumber style={inputNumberStyle} /></span>
</div>
<div className="item">
【填空题】
<span>每题<InputNumber style={inputNumberStyle} /></span>
</div>
</div>
</Modal>
)
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment