|
|
|
@ -260,27 +260,27 @@ class Listjihe extends Component {
|
|
|
|
|
<p className="w100s listjihetixingstitsp verticallayout ">
|
|
|
|
|
{
|
|
|
|
|
items === undefined || items === null ? "" : items.choices.map((object, index) => {
|
|
|
|
|
var string = ""
|
|
|
|
|
var string=""
|
|
|
|
|
try {
|
|
|
|
|
string = JSON.parse(object.choice_text);
|
|
|
|
|
} catch (e) {
|
|
|
|
|
string = object.choice_text;
|
|
|
|
|
string=JSON.parse(object.choice_text);
|
|
|
|
|
}catch (e) {
|
|
|
|
|
string=object.choice_text;
|
|
|
|
|
}
|
|
|
|
|
return (
|
|
|
|
|
<p className={index === 0 ? "sortinxdirection " : "sortinxdirection mt15 "}>
|
|
|
|
|
<p className="lh20s">{tagArray[index]}</p>
|
|
|
|
|
<p className="programquill" style={{ wordBreak: "break-word" }}>
|
|
|
|
|
<p className="programquill" style={{wordBreak: "break-word"}}>
|
|
|
|
|
{object ?
|
|
|
|
|
object.choice_text === undefined || object.choice_text === null || object.choice_text === "" ?
|
|
|
|
|
object.choice_text === undefined || object.choice_text=== null || object.choice_text === "" ?
|
|
|
|
|
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
object.choice_text.length > 0 ?
|
|
|
|
|
object.choice_text.length>0?
|
|
|
|
|
<QuillForEditor
|
|
|
|
|
readOnly={true}
|
|
|
|
|
value={string}
|
|
|
|
|
/>
|
|
|
|
|
: ""
|
|
|
|
|
:""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:
|
|
|
|
@ -331,8 +331,8 @@ class Listjihe extends Component {
|
|
|
|
|
{
|
|
|
|
|
items.choosed === true ?
|
|
|
|
|
<p className="selectionss xiaoshou" onClick={() => this.Selectingpracticaltrainings(items.id)}>
|
|
|
|
|
<i className="iconfont icon-jianhao font-12 lg ml7 lh30 icontianjiadaohangcolor mr5"></i>
|
|
|
|
|
<span className="mr15 lh30">撤销</span></p>
|
|
|
|
|
{/*<i className="iconfont icon-jianhao font-12 lg ml7 lh30 icontianjiadaohangcolor mr5"></i>*/}
|
|
|
|
|
<span className=" lh30">撤销</span></p>
|
|
|
|
|
:
|
|
|
|
|
items.item_type === "PROGRAM" ?
|
|
|
|
|
items.program_attr.status === 0 ?
|
|
|
|
@ -363,7 +363,7 @@ class Listjihe extends Component {
|
|
|
|
|
</p>
|
|
|
|
|
{
|
|
|
|
|
items.item_type === "PROGRAM" ?
|
|
|
|
|
this.props.Isitapopup && this.props.Isitapopup === "true" ?
|
|
|
|
|
this.props.Isitapopup&&this.props.Isitapopup==="true"?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<a target="_blank" href={`/problems/${items.program_attr.identifier}/edit`}>
|
|
|
|
@ -373,7 +373,7 @@ class Listjihe extends Component {
|
|
|
|
|
</p>
|
|
|
|
|
</a>
|
|
|
|
|
:
|
|
|
|
|
this.props.Isitapopup && this.props.Isitapopup === "true" ?
|
|
|
|
|
this.props.Isitapopup&&this.props.Isitapopup==="true"?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<a href={`/question/edit/${items.id}`}>
|
|
|
|
@ -390,14 +390,14 @@ class Listjihe extends Component {
|
|
|
|
|
items.program_attr.status === 0 ?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
items.apply === false ?
|
|
|
|
|
items.apply===false?
|
|
|
|
|
<p className="viewparsings xiaoshou mr25" onClick={() => this.props.showmodels(items.id)}>
|
|
|
|
|
<i className="iconfont icon-gongkai font-17 lg ml7 lh30 icontianjiadaohangcolors mr5"></i>
|
|
|
|
|
<span>公开</span>
|
|
|
|
|
</p>
|
|
|
|
|
:
|
|
|
|
|
(
|
|
|
|
|
items.public == true ?
|
|
|
|
|
items.public==true?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<p className="viewparsings xiaoshou mr25" onClick={(e) => this.props.showmodelsInaudit(e)}>
|
|
|
|
@ -406,14 +406,22 @@ class Listjihe extends Component {
|
|
|
|
|
</p>
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
: items.apply === false ?
|
|
|
|
|
:items.apply===false?
|
|
|
|
|
<p className="viewparsings xiaoshou mr25" onClick={() => this.props.showmodels(items.id)}>
|
|
|
|
|
<i className="iconfont icon-gongkai font-17 lg ml7 lh30 icontianjiadaohangcolors mr5"></i>
|
|
|
|
|
<span>公开</span>
|
|
|
|
|
</p>
|
|
|
|
|
:
|
|
|
|
|
(
|
|
|
|
|
items.public==true?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<p className="viewparsings xiaoshou mr25" onClick={(e) => this.props.showmodelsInaudit(e)}>
|
|
|
|
|
<i className="iconfont icon-gongkai font-17 lg ml7 lh30 icontianjiadaohangcolors mr5"></i>
|
|
|
|
|
<span>公开审核中</span>
|
|
|
|
|
</p>
|
|
|
|
|
)
|
|
|
|
|
:
|
|
|
|
|
""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -442,39 +450,44 @@ class Listjihe extends Component {
|
|
|
|
|
{
|
|
|
|
|
items.item_type === "SINGLE" ?
|
|
|
|
|
<p className=" testfondex yldxtit"
|
|
|
|
|
style={{ wordBreak: "break-word" }}
|
|
|
|
|
dangerouslySetInnerHTML={{ __html: markdownToHTML("答案:" + tagArrays[rightkey]).replace(/▁/g, "▁▁▁") }}
|
|
|
|
|
style={{wordBreak: "break-word"}}
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML("答案:" + tagArrays[rightkey]).replace(/▁/g, "▁▁▁")}}
|
|
|
|
|
>
|
|
|
|
|
</p>
|
|
|
|
|
: items.item_type === "MULTIPLE" ?
|
|
|
|
|
: items.item_type === "MULTIPLE"?
|
|
|
|
|
<p className=" testfondex yldxtit"
|
|
|
|
|
style={{ wordBreak: "break-word" }}
|
|
|
|
|
dangerouslySetInnerHTML={{ __html: markdownToHTML("答案:" + MULTIPLEkey).replace(/▁/g, "▁▁▁") }}
|
|
|
|
|
style={{wordBreak: "break-word"}}
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML("答案:" + MULTIPLEkey).replace(/▁/g, "▁▁▁")}}
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
:
|
|
|
|
|
<p className=" testfondex yldxtit"
|
|
|
|
|
style={{ wordBreak: "break-word" }}
|
|
|
|
|
dangerouslySetInnerHTML={{ __html: markdownToHTML("答案:" + rightkey).replace(/▁/g, "▁▁▁") }}
|
|
|
|
|
style={{wordBreak: "break-word"}}
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML("答案:" + rightkey).replace(/▁/g, "▁▁▁")}}
|
|
|
|
|
>
|
|
|
|
|
</p>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div className=" sortinxdirection mt15 yldxtit">
|
|
|
|
|
<p id={"analysisnamesid"} className=" testfondex yldxtit programquill"
|
|
|
|
|
style={{ wordBreak: "break-word" }}
|
|
|
|
|
<p className=" testfondex yldxtit "
|
|
|
|
|
style={{wordBreak: "break-word"}}
|
|
|
|
|
>
|
|
|
|
|
解析:
|
|
|
|
|
</p>
|
|
|
|
|
<p id={"analysisnamesid"} className="wt930px testfondex yldxtit programquill"
|
|
|
|
|
style={{wordBreak: "break-word"}}
|
|
|
|
|
>
|
|
|
|
|
{items ?
|
|
|
|
|
items.analysis === undefined || items.analysis === null || items.analysis === "" ?
|
|
|
|
|
items.analysis=== undefined || items.analysis=== null || items.analysis === "" ?
|
|
|
|
|
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
items.analysis.length > 0 ?
|
|
|
|
|
analysisnames === null || analysisnames === undefined ? "" :
|
|
|
|
|
items.analysis.length>0?
|
|
|
|
|
analysisnames===null || analysisnames===undefined?"":
|
|
|
|
|
<QuillForEditor
|
|
|
|
|
imgAttrs={{ width: '60px', height: '30px' }}
|
|
|
|
|
imgAttrs={{width: '60px', height: '30px'}}
|
|
|
|
|
readOnly={true}
|
|
|
|
|
value={analysisnames}
|
|
|
|
|
/>
|
|
|
|
|