|
|
|
@ -17,6 +17,7 @@ import Itembankstop from "./component/Itembankstop";
|
|
|
|
|
import NoneData from './component/NoneData';
|
|
|
|
|
import './questioncss/questioncom.css';
|
|
|
|
|
import '../tpm/newshixuns/css/Newshixuns.css';
|
|
|
|
|
import QuillForEditor from "../../common/quillForEditor";
|
|
|
|
|
|
|
|
|
|
const tagArray = [
|
|
|
|
|
'A.', 'B.', 'C.', 'D.', 'E.', 'F.', 'G.', 'H.', 'I.',
|
|
|
|
@ -69,13 +70,42 @@ class Paperreview_single extends Component {
|
|
|
|
|
render() {
|
|
|
|
|
let {questions, totalscore, total, items} = this.state;
|
|
|
|
|
let {objectsingle, indexx, paperreviewsingleindex, indexxy,name} = this.props;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var itemssname="";
|
|
|
|
|
try {
|
|
|
|
|
itemssname= JSON.parse(objectsingle.name);
|
|
|
|
|
}catch (e) {
|
|
|
|
|
}
|
|
|
|
|
if(itemssname===undefined){
|
|
|
|
|
itemssname=objectsingle.name
|
|
|
|
|
}
|
|
|
|
|
return (
|
|
|
|
|
<div key={indexxy}
|
|
|
|
|
className={ "w100s borderwdswuh mb20 pd20 "}
|
|
|
|
|
onMouseEnter={() => this.props.showparagraphs(indexxy,name)} style={{
|
|
|
|
|
minHeight: "114px",
|
|
|
|
|
}}>
|
|
|
|
|
|
|
|
|
|
<style>{
|
|
|
|
|
`
|
|
|
|
|
.programquill .ql-editor{
|
|
|
|
|
padding: 0px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.programquill .ql-editor p{
|
|
|
|
|
line-height: 28px;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
.programquills .ql-editor{
|
|
|
|
|
padding: 0px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.programquills .ql-editor p{
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
}</style>
|
|
|
|
|
{/*顶部*/}
|
|
|
|
|
<div className="w100s sortinxdirection ">
|
|
|
|
|
<div className=" sortinxdirection ">
|
|
|
|
@ -99,9 +129,35 @@ class Paperreview_single extends Component {
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div className=" lh28 listjihetixingstit markdown-body cretitlecolrlist" style={{wordBreak: "break-word"}}
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(`(${objectsingle.score}分) ` + objectsingle.name).replace(/▁/g, "▁▁▁")}}>
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
objectsingle.item_type==="PROGRAM"?
|
|
|
|
|
<div className="w100s sortinxdirection">
|
|
|
|
|
<div className=" tites lh28 listjihetixingstit markdown-body cretitlecolrlist " style={{wordBreak: "break-word"}}
|
|
|
|
|
>
|
|
|
|
|
({objectsingle.score}分)
|
|
|
|
|
</div>
|
|
|
|
|
<div className="ml10 lh28 listjihetixingstit markdown-body cretitlecolrlist " style={{wordBreak: "break-word"}}
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(objectsingle.name).replace(/▁/g, "▁▁▁")}}>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
<div className="w100s sortinxdirection">
|
|
|
|
|
<div className="tites lh28 listjihetixingstit markdown-body cretitlecolrlist " style={{wordBreak: "break-word"}}
|
|
|
|
|
>
|
|
|
|
|
({objectsingle.score}分)
|
|
|
|
|
</div>
|
|
|
|
|
<div className="ml10 lh28 listjihetixingstit cretitlecolrlist programquill" style={{wordBreak: "break-word"}}
|
|
|
|
|
>
|
|
|
|
|
<QuillForEditor
|
|
|
|
|
readOnly={true}
|
|
|
|
|
value={itemssname}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
{/*内容*/}
|
|
|
|
|
<div className="w100s sortinxdirection">
|
|
|
|
@ -114,7 +170,7 @@ class Paperreview_single extends Component {
|
|
|
|
|
objectsingle === undefined || objectsingle === null ? "" : objectsingle.choices.map((object, index) => {
|
|
|
|
|
return (
|
|
|
|
|
<p className={index === 1 ? "sortinxdirection ml10" : "sortinxdirection "}>
|
|
|
|
|
<Radio checked={object.is_answer}>
|
|
|
|
|
<Radio disabled={false}>
|
|
|
|
|
{object.choice_text}
|
|
|
|
|
</Radio>
|
|
|
|
|
</p>
|
|
|
|
@ -126,8 +182,17 @@ class Paperreview_single extends Component {
|
|
|
|
|
objectsingle.item_type === "PROGRAM" ?
|
|
|
|
|
<p className="w100s listjihetixingstitssy sortinxdirection ">
|
|
|
|
|
<p className={"sortinxdirection mt15"}>
|
|
|
|
|
<p style={{wordBreak: "break-word"}}
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(objectsingle.program_attr.description).replace(/▁/g, "▁▁▁")}}></p>
|
|
|
|
|
{
|
|
|
|
|
objectsingle&&objectsingle.program_attr&&objectsingle.program_attr.description?
|
|
|
|
|
<p className="programquill" style={{wordBreak: "break-word"}}
|
|
|
|
|
>
|
|
|
|
|
<QuillForEditor
|
|
|
|
|
readOnly={true}
|
|
|
|
|
value={JSON.parse(objectsingle.program_attr.description)}
|
|
|
|
|
/>
|
|
|
|
|
</p>
|
|
|
|
|
:
|
|
|
|
|
""}
|
|
|
|
|
</p>
|
|
|
|
|
</p>
|
|
|
|
|
:
|
|
|
|
@ -137,8 +202,21 @@ class Paperreview_single extends Component {
|
|
|
|
|
return (
|
|
|
|
|
<p className={index === 0 ? "sortinxdirection" : "sortinxdirection mt15"}>
|
|
|
|
|
{tagArray[index]}
|
|
|
|
|
<p style={{wordBreak: "break-word"}}
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(object.choice_text).replace(/▁/g, "▁▁▁")}}></p>
|
|
|
|
|
<p className="programquills" style={{wordBreak: "break-word"}}>
|
|
|
|
|
{object ?
|
|
|
|
|
object.choice_text === undefined || object.choice_text=== null || object.choice_text === "" ?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
object.choice_text.length>0?
|
|
|
|
|
<QuillForEditor
|
|
|
|
|
readOnly={true}
|
|
|
|
|
value={JSON.parse(object.choice_text)}
|
|
|
|
|
/>
|
|
|
|
|
:""
|
|
|
|
|
:
|
|
|
|
|
""
|
|
|
|
|
}
|
|
|
|
|
</p>
|
|
|
|
|
</p>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|