|
|
|
@ -160,20 +160,23 @@ class Listjihe extends Component {
|
|
|
|
|
try {
|
|
|
|
|
analysisnames = JSON.parse(items && items.analysis);
|
|
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
analysisnames = items && items.analysis;
|
|
|
|
|
}
|
|
|
|
|
console.log(items.name);
|
|
|
|
|
console.log(itemsnamesy);
|
|
|
|
|
|
|
|
|
|
console.log(analysisnames);
|
|
|
|
|
return (
|
|
|
|
|
<div key={keindex}
|
|
|
|
|
className={chakanjiexiboolindex === keindex ? "w100s borderwds283 pd20 mb20 listjihecolors" : "w100s borderwds pd20 mb20 listjihecolors"}>
|
|
|
|
|
{/*顶部*/}
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
` .markdown-body .ql-editor{
|
|
|
|
|
}catch (e) {
|
|
|
|
|
analysisnames=items&&items.analysis;
|
|
|
|
|
}
|
|
|
|
|
// console.log(items.name);
|
|
|
|
|
// console.log(itemsnamesy);
|
|
|
|
|
//
|
|
|
|
|
// console.log(analysisnames);
|
|
|
|
|
const options = [
|
|
|
|
|
'bold', // 加粗
|
|
|
|
|
]
|
|
|
|
|
return (
|
|
|
|
|
<div key={keindex}
|
|
|
|
|
className={chakanjiexiboolindex === keindex ? "w100s borderwds283 pd20 mb20 listjihecolors" : "w100s borderwds pd20 mb20 listjihecolors"}>
|
|
|
|
|
{/*顶部*/}
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
` .markdown-body .ql-editor{
|
|
|
|
|
padding-left: 0px !important;
|
|
|
|
|
padding-top: 0px !important;
|
|
|
|
|
}
|
|
|
|
@ -193,64 +196,65 @@ class Listjihe extends Component {
|
|
|
|
|
this.props.listjihe
|
|
|
|
|
}.
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
items.item_type === "PROGRAM" ?
|
|
|
|
|
<a href={`/problems/${items.program_attr.identifier}/edit`}>
|
|
|
|
|
<div className="ml10 w100s " style={{ wordBreak: "break-word" }} dangerouslySetInnerHTML={{ __html: markdownToHTML(items && items.name).replace(/▁/g, "▁▁▁") }}></div>
|
|
|
|
|
</a>
|
|
|
|
|
:
|
|
|
|
|
<div className="ml10 w100s markdown-body" style={{ wordBreak: "break-word" }}>
|
|
|
|
|
{items === undefined || items === null || items === "" ? "" :
|
|
|
|
|
items.name === undefined || items.name === null || items.name === "" ?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
items.name.length > 0 ?
|
|
|
|
|
itemssname === null || itemssname === undefined ? "" :
|
|
|
|
|
<QuillForEditor
|
|
|
|
|
readOnly={true}
|
|
|
|
|
value={itemssname}
|
|
|
|
|
/>
|
|
|
|
|
: ""
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
items.item_type==="PROGRAM"?
|
|
|
|
|
<a href={`/problems/${items.program_attr.identifier}/edit`}>
|
|
|
|
|
<div className="ml10 w100s " style={{wordBreak: "break-word"}} dangerouslySetInnerHTML={{__html: markdownToHTML(items&&items.name).replace(/▁/g, "▁▁▁")}}></div>
|
|
|
|
|
</a>
|
|
|
|
|
:
|
|
|
|
|
<div className="ml10 w100s markdown-body" style={{wordBreak: "break-word"}}>
|
|
|
|
|
{ items===undefined||items===null||items===""?"":
|
|
|
|
|
items.name === undefined || items.name === null || items.name === "" ?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
items.name.length>0?
|
|
|
|
|
itemssname===null|| itemssname===undefined?"":
|
|
|
|
|
<QuillForEditor
|
|
|
|
|
options={options}
|
|
|
|
|
readOnly={true}
|
|
|
|
|
value={itemssname}
|
|
|
|
|
/>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
{/*内容*/}
|
|
|
|
|
<div className="w100s sortinxdirection ">
|
|
|
|
|
{items.item_type === "JUDGMENT" ?
|
|
|
|
|
<p className="w100s listjihetixingstitsp sortinxdirection ">
|
|
|
|
|
{
|
|
|
|
|
items === undefined || items === null ? "" : items.choices.map((object, index) => {
|
|
|
|
|
return (
|
|
|
|
|
<p className={index === 1 ? "sortinxdirection ml10" : "sortinxdirection "}>
|
|
|
|
|
<Radio disabled={true} >
|
|
|
|
|
{object.choice_text}
|
|
|
|
|
</Radio>
|
|
|
|
|
</p>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
</p> :
|
|
|
|
|
items.item_type === "PROGRAM" ?
|
|
|
|
|
<p className="w100s listjihetixingstitssy sortinxdirection ">
|
|
|
|
|
<p id={"itemsnamesyid"} className={"sortinxdirection mt15"}>
|
|
|
|
|
{
|
|
|
|
|
items && items.program_attr && items.program_attr.description ?
|
|
|
|
|
<p className="programquill" style={{ wordBreak: "break-word" }}
|
|
|
|
|
>
|
|
|
|
|
{
|
|
|
|
|
itemsnamesy === null || itemsnamesy === undefined ?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<QuillForEditor
|
|
|
|
|
readOnly={true}
|
|
|
|
|
value={itemsnamesy}
|
|
|
|
|
/>
|
|
|
|
|
}
|
|
|
|
|
</p>
|
|
|
|
|
: ""
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
{/*内容*/}
|
|
|
|
|
<div className="w100s sortinxdirection ">
|
|
|
|
|
{items.item_type === "JUDGMENT" ?
|
|
|
|
|
<p className="w100s listjihetixingstitsp sortinxdirection ">
|
|
|
|
|
{
|
|
|
|
|
items === undefined || items === null ? "" : items.choices.map((object, index) => {
|
|
|
|
|
return (
|
|
|
|
|
<p className={index === 1 ? "sortinxdirection ml10" : "sortinxdirection "}>
|
|
|
|
|
<Radio disabled={true} >
|
|
|
|
|
{object.choice_text}
|
|
|
|
|
</Radio>
|
|
|
|
|
</p>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
</p> :
|
|
|
|
|
items.item_type === "PROGRAM" ?
|
|
|
|
|
<p className="w100s listjihetixingstitssy sortinxdirection ">
|
|
|
|
|
<p id={"itemsnamesyid"} className={"sortinxdirection mt15"}>
|
|
|
|
|
{
|
|
|
|
|
items&&items.program_attr&&items.program_attr.description?
|
|
|
|
|
<p className="programquill" style={{wordBreak: "break-word"}}
|
|
|
|
|
>
|
|
|
|
|
{
|
|
|
|
|
itemsnamesy===null || itemsnamesy===undefined?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<QuillForEditor
|
|
|
|
|
readOnly={true}
|
|
|
|
|
value={itemsnamesy}
|
|
|
|
|
/>
|
|
|
|
|
}
|
|
|
|
|
</p>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|