|
|
|
@ -0,0 +1,159 @@
|
|
|
|
|
import React, {Component} from "react";
|
|
|
|
|
import {Link, NavLink} from 'react-router-dom';
|
|
|
|
|
import {WordsBtn, ActionBtn, SnackbarHOC, getImageUrl} from 'educoder';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import {
|
|
|
|
|
notification,
|
|
|
|
|
Spin,
|
|
|
|
|
Table,
|
|
|
|
|
Pagination,
|
|
|
|
|
Drawer,
|
|
|
|
|
Input,
|
|
|
|
|
Button,
|
|
|
|
|
Breadcrumb
|
|
|
|
|
} from "antd";
|
|
|
|
|
import {TPMIndexHOC} from "../tpm/TPMIndexHOC";
|
|
|
|
|
import Itembankstop from "./component/Itembankstop";
|
|
|
|
|
import NoneData from './component/NoneData';
|
|
|
|
|
import './questioncss/questioncom.css';
|
|
|
|
|
import '../tpm/newshixuns/css/Newshixuns.css';
|
|
|
|
|
import Choicequestion from './component/Choicequestion';
|
|
|
|
|
import SingleEditor from "./component/SingleEditor";
|
|
|
|
|
import ChoquesEditor from "./component/ChoquesEditor"
|
|
|
|
|
import JudquestionEditor from "./component/JudquestionEditor";
|
|
|
|
|
import Paperreview_item from "./Paperreview_item"
|
|
|
|
|
import Bottomsubmit from "../../modules/modals/Bottomsubmit";
|
|
|
|
|
|
|
|
|
|
class Paperreview extends Component {
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
this.contentMdRef = React.createRef();
|
|
|
|
|
this.answerMdRef = React.createRef();
|
|
|
|
|
this.Choques = React.createRef();
|
|
|
|
|
this.Judquestio = React.createRef();
|
|
|
|
|
this.state = {
|
|
|
|
|
item_type: null,
|
|
|
|
|
item_banksedit: [],
|
|
|
|
|
myquestion_choicesco: [],
|
|
|
|
|
disciplinesdata: [],
|
|
|
|
|
knowledgepoints: [],
|
|
|
|
|
disciplmy:[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//初始化
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getdata = (data) => {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getcontentMdRef = (Ref) => {
|
|
|
|
|
this.contentMdRef = Ref;
|
|
|
|
|
}
|
|
|
|
|
getanswerMdRef = (Ref) => {
|
|
|
|
|
this.answerMdRef = Ref;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getJudquestio = (Ref) => {
|
|
|
|
|
this.Judquestio = Ref;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getChoquesEditor = (Ref) => {
|
|
|
|
|
this.Choques = Ref;
|
|
|
|
|
}
|
|
|
|
|
//跳转道描点的地方
|
|
|
|
|
scrollToAnchor = (anchorName) => {
|
|
|
|
|
try {
|
|
|
|
|
if (anchorName) {
|
|
|
|
|
// 找到锚点
|
|
|
|
|
let anchorElement = document.getElementById(anchorName);
|
|
|
|
|
// 如果对应id的锚点存在,就跳转到锚点
|
|
|
|
|
if (anchorElement) {
|
|
|
|
|
anchorElement.scrollIntoView();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
preservation = () => {
|
|
|
|
|
//保存试卷
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setitem_type = (item_type) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
let {page, limit, count, Headertop, visible, placement, modalsType, item_type} = this.state;
|
|
|
|
|
const params = this.props && this.props.match && this.props.match.params;
|
|
|
|
|
// //console.log(params);
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<div id={"Itembankstopid"} className="newMain clearfix intermediatecenter "
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
.newFooter{
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div className="w1200mss">
|
|
|
|
|
<div className="w100s mt30">
|
|
|
|
|
<Breadcrumb separator=">">
|
|
|
|
|
<Breadcrumb.Item href="/question">试题库</Breadcrumb.Item>
|
|
|
|
|
<Breadcrumb.Item className={"xiaoshou"} >人工组卷</Breadcrumb.Item>
|
|
|
|
|
<Breadcrumb.Item className={"xiaoshout"}>试卷预览</Breadcrumb.Item>
|
|
|
|
|
</Breadcrumb>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<Paperreview_item>
|
|
|
|
|
|
|
|
|
|
</Paperreview_item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
item_type === null ?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<Bottomsubmit {...this.props} {...this.state} bottomvalue={"保存组卷"}
|
|
|
|
|
onSubmits={() => this.preservation()} url={'/question'}></Bottomsubmit>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default SnackbarHOC()(TPMIndexHOC(Paperreview));
|
|
|
|
|
|
|
|
|
|
|