commit
6878e3529d
@ -0,0 +1,110 @@
|
||||
import React, {Component} from "react";
|
||||
import {Link, NavLink} from 'react-router-dom';
|
||||
import {WordsBtn, ActionBtn, getImageUrl,markdownToHTML} from 'educoder';
|
||||
import axios from 'axios';
|
||||
import {
|
||||
notification,
|
||||
Spin,
|
||||
Table,
|
||||
Pagination,
|
||||
Drawer,
|
||||
Input,
|
||||
Button,
|
||||
Breadcrumb
|
||||
} from "antd";
|
||||
import Itembankstop from "./component/Itembankstop";
|
||||
import NoneData from './component/NoneData';
|
||||
import './questioncss/questioncom.css';
|
||||
import '../tpm/newshixuns/css/Newshixuns.css';
|
||||
|
||||
//判断题
|
||||
class Paperreview_judgment extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.state = {
|
||||
questions:0,
|
||||
totalscore:0,
|
||||
total:0,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//初始化
|
||||
componentDidMount() {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
getdata = (data) => {
|
||||
|
||||
}
|
||||
|
||||
preservation = () => {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
setitem_type = (item_type) => {
|
||||
|
||||
|
||||
}
|
||||
|
||||
render() {
|
||||
let {questions,totalscore,total,items} = this.state;
|
||||
// //console.log(params);
|
||||
return (
|
||||
<div className="w100s borderwdswuh mt25 mb20 ">
|
||||
|
||||
|
||||
{/*顶部*/}
|
||||
<div className="w100s sortinxdirection">
|
||||
<div className=" listjihetixingstit markdown-body" style={{wordBreak: "break-word"}} dangerouslySetInnerHTML={{__html: markdownToHTML(items&&items.name).replace(/▁/g, "▁▁▁")}}>
|
||||
</div>
|
||||
</div>
|
||||
{/*内容*/}
|
||||
{/*<div className="w100s sortinxdirection">*/}
|
||||
|
||||
{/* <p className="w100s listjihetixingstits sortinxdirection ">*/}
|
||||
{/* {*/}
|
||||
{/* items.item_type==="JUDGMENT"?*/}
|
||||
{/* items === undefined ||items === null? "" : items.choices.map((object, index) => {*/}
|
||||
{/* return (*/}
|
||||
{/* <p className={index===1? "sortinxdirection ml10":"sortinxdirection " } >*/}
|
||||
{/* <Radio checked={object.is_answer}>*/}
|
||||
{/* {object.choice_text}*/}
|
||||
{/* </Radio>*/}
|
||||
{/* </p>*/}
|
||||
{/* )*/}
|
||||
{/* })*/}
|
||||
{/* :*/}
|
||||
{/* items === undefined ||items === null? "" : items.choices.map((object, index) => {*/}
|
||||
{/* return (*/}
|
||||
{/* <p className="sortinxdirection ml10" >*/}
|
||||
{/* {tagArray[index]}*/}
|
||||
{/* <p style={{wordBreak: "break-word"}} dangerouslySetInnerHTML={{__html: markdownToHTML(object.choice_text).replace(/▁/g, "▁▁▁")}}></p>*/}
|
||||
{/* </p>*/}
|
||||
{/* )*/}
|
||||
{/* })*/}
|
||||
{/* }*/}
|
||||
|
||||
{/* </p>*/}
|
||||
{/*</div>*/}
|
||||
</div>
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
export default Paperreview_judgment
|
||||
|
||||
|
@ -0,0 +1,110 @@
|
||||
import React, {Component} from "react";
|
||||
import {Link, NavLink} from 'react-router-dom';
|
||||
import {WordsBtn, ActionBtn, getImageUrl,markdownToHTML} from 'educoder';
|
||||
import axios from 'axios';
|
||||
import {
|
||||
notification,
|
||||
Spin,
|
||||
Table,
|
||||
Pagination,
|
||||
Drawer,
|
||||
Input,
|
||||
Button,
|
||||
Breadcrumb
|
||||
} from "antd";
|
||||
import Itembankstop from "./component/Itembankstop";
|
||||
import NoneData from './component/NoneData';
|
||||
import './questioncss/questioncom.css';
|
||||
import '../tpm/newshixuns/css/Newshixuns.css';
|
||||
|
||||
//多选题
|
||||
class Paperreview_multlple extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.state = {
|
||||
questions:0,
|
||||
totalscore:0,
|
||||
total:0,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//初始化
|
||||
componentDidMount() {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
getdata = (data) => {
|
||||
|
||||
}
|
||||
|
||||
preservation = () => {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
setitem_type = (item_type) => {
|
||||
|
||||
|
||||
}
|
||||
|
||||
render() {
|
||||
let {questions,totalscore,total,items} = this.state;
|
||||
// //console.log(params);
|
||||
return (
|
||||
<div className="w100s borderwdswuh mt25 mb20 ">
|
||||
|
||||
|
||||
{/*顶部*/}
|
||||
<div className="w100s sortinxdirection">
|
||||
<div className=" listjihetixingstit markdown-body" style={{wordBreak: "break-word"}} dangerouslySetInnerHTML={{__html: markdownToHTML(items&&items.name).replace(/▁/g, "▁▁▁")}}>
|
||||
</div>
|
||||
</div>
|
||||
{/*内容*/}
|
||||
{/*<div className="w100s sortinxdirection">*/}
|
||||
|
||||
{/* <p className="w100s listjihetixingstits sortinxdirection ">*/}
|
||||
{/* {*/}
|
||||
{/* items.item_type==="JUDGMENT"?*/}
|
||||
{/* items === undefined ||items === null? "" : items.choices.map((object, index) => {*/}
|
||||
{/* return (*/}
|
||||
{/* <p className={index===1? "sortinxdirection ml10":"sortinxdirection " } >*/}
|
||||
{/* <Radio checked={object.is_answer}>*/}
|
||||
{/* {object.choice_text}*/}
|
||||
{/* </Radio>*/}
|
||||
{/* </p>*/}
|
||||
{/* )*/}
|
||||
{/* })*/}
|
||||
{/* :*/}
|
||||
{/* items === undefined ||items === null? "" : items.choices.map((object, index) => {*/}
|
||||
{/* return (*/}
|
||||
{/* <p className="sortinxdirection ml10" >*/}
|
||||
{/* {tagArray[index]}*/}
|
||||
{/* <p style={{wordBreak: "break-word"}} dangerouslySetInnerHTML={{__html: markdownToHTML(object.choice_text).replace(/▁/g, "▁▁▁")}}></p>*/}
|
||||
{/* </p>*/}
|
||||
{/* )*/}
|
||||
{/* })*/}
|
||||
{/* }*/}
|
||||
|
||||
{/* </p>*/}
|
||||
{/*</div>*/}
|
||||
</div>
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
export default Paperreview_multlple
|
||||
|
||||
|
@ -0,0 +1,110 @@
|
||||
import React, {Component} from "react";
|
||||
import {Link, NavLink} from 'react-router-dom';
|
||||
import {WordsBtn, ActionBtn, getImageUrl,markdownToHTML} from 'educoder';
|
||||
import axios from 'axios';
|
||||
import {
|
||||
notification,
|
||||
Spin,
|
||||
Table,
|
||||
Pagination,
|
||||
Drawer,
|
||||
Input,
|
||||
Button,
|
||||
Breadcrumb
|
||||
} from "antd";
|
||||
import Itembankstop from "./component/Itembankstop";
|
||||
import NoneData from './component/NoneData';
|
||||
import './questioncss/questioncom.css';
|
||||
import '../tpm/newshixuns/css/Newshixuns.css';
|
||||
|
||||
//编程题
|
||||
class Paperreview_program extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.state = {
|
||||
questions:0,
|
||||
totalscore:0,
|
||||
total:0,
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//初始化
|
||||
componentDidMount() {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
getdata = (data) => {
|
||||
|
||||
}
|
||||
|
||||
preservation = () => {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
setitem_type = (item_type) => {
|
||||
|
||||
|
||||
}
|
||||
|
||||
render() {
|
||||
let {questions,totalscore,total,items} = this.state;
|
||||
// //console.log(params);
|
||||
return (
|
||||
<div className="w100s borderwdswuh mt25 mb20 ">
|
||||
|
||||
|
||||
{/*顶部*/}
|
||||
<div className="w100s sortinxdirection">
|
||||
<div className=" listjihetixingstit markdown-body" style={{wordBreak: "break-word"}} dangerouslySetInnerHTML={{__html: markdownToHTML(items&&items.name).replace(/▁/g, "▁▁▁")}}>
|
||||
</div>
|
||||
</div>
|
||||
{/*内容*/}
|
||||
{/*<div className="w100s sortinxdirection">*/}
|
||||
|
||||
{/* <p className="w100s listjihetixingstits sortinxdirection ">*/}
|
||||
{/* {*/}
|
||||
{/* items.item_type==="JUDGMENT"?*/}
|
||||
{/* items === undefined ||items === null? "" : items.choices.map((object, index) => {*/}
|
||||
{/* return (*/}
|
||||
{/* <p className={index===1? "sortinxdirection ml10":"sortinxdirection " } >*/}
|
||||
{/* <Radio checked={object.is_answer}>*/}
|
||||
{/* {object.choice_text}*/}
|
||||
{/* </Radio>*/}
|
||||
{/* </p>*/}
|
||||
{/* )*/}
|
||||
{/* })*/}
|
||||
{/* :*/}
|
||||
{/* items === undefined ||items === null? "" : items.choices.map((object, index) => {*/}
|
||||
{/* return (*/}
|
||||
{/* <p className="sortinxdirection ml10" >*/}
|
||||
{/* {tagArray[index]}*/}
|
||||
{/* <p style={{wordBreak: "break-word"}} dangerouslySetInnerHTML={{__html: markdownToHTML(object.choice_text).replace(/▁/g, "▁▁▁")}}></p>*/}
|
||||
{/* </p>*/}
|
||||
{/* )*/}
|
||||
{/* })*/}
|
||||
{/* }*/}
|
||||
|
||||
{/* </p>*/}
|
||||
{/*</div>*/}
|
||||
</div>
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
export default Paperreview_program
|
||||
|
||||
|
Loading…
Reference in new issue