|
|
@ -160,13 +160,16 @@ class Listjihe extends Component {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
analysisnames = JSON.parse(items && items.analysis);
|
|
|
|
analysisnames = JSON.parse(items && items.analysis);
|
|
|
|
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
}catch (e) {
|
|
|
|
analysisnames = items && items.analysis;
|
|
|
|
analysisnames=items&&items.analysis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(items.name);
|
|
|
|
// console.log(items.name);
|
|
|
|
console.log(itemsnamesy);
|
|
|
|
// console.log(itemsnamesy);
|
|
|
|
|
|
|
|
//
|
|
|
|
console.log(analysisnames);
|
|
|
|
// console.log(analysisnames);
|
|
|
|
|
|
|
|
const options = [
|
|
|
|
|
|
|
|
'bold', // 加粗
|
|
|
|
|
|
|
|
]
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div key={keindex}
|
|
|
|
<div key={keindex}
|
|
|
|
className={chakanjiexiboolindex === keindex ? "w100s borderwds283 pd20 mb20 listjihecolors" : "w100s borderwds pd20 mb20 listjihecolors"}>
|
|
|
|
className={chakanjiexiboolindex === keindex ? "w100s borderwds283 pd20 mb20 listjihecolors" : "w100s borderwds pd20 mb20 listjihecolors"}>
|
|
|
@ -194,23 +197,24 @@ class Listjihe extends Component {
|
|
|
|
}.
|
|
|
|
}.
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
items.item_type === "PROGRAM" ?
|
|
|
|
items.item_type==="PROGRAM"?
|
|
|
|
<a href={`/problems/${items.program_attr.identifier}/edit`}>
|
|
|
|
<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>
|
|
|
|
<div className="ml10 w100s " style={{wordBreak: "break-word"}} dangerouslySetInnerHTML={{__html: markdownToHTML(items&&items.name).replace(/▁/g, "▁▁▁")}}></div>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<div className="ml10 w100s markdown-body" style={{ wordBreak: "break-word" }}>
|
|
|
|
<div className="ml10 w100s markdown-body" style={{wordBreak: "break-word"}}>
|
|
|
|
{items === undefined || items === null || items === "" ? "" :
|
|
|
|
{ items===undefined||items===null||items===""?"":
|
|
|
|
items.name === undefined || items.name === null || items.name === "" ?
|
|
|
|
items.name === undefined || items.name === null || items.name === "" ?
|
|
|
|
""
|
|
|
|
""
|
|
|
|
:
|
|
|
|
:
|
|
|
|
items.name.length > 0 ?
|
|
|
|
items.name.length>0?
|
|
|
|
itemssname === null || itemssname === undefined ? "" :
|
|
|
|
itemssname===null|| itemssname===undefined?"":
|
|
|
|
<QuillForEditor
|
|
|
|
<QuillForEditor
|
|
|
|
|
|
|
|
options={options}
|
|
|
|
readOnly={true}
|
|
|
|
readOnly={true}
|
|
|
|
value={itemssname}
|
|
|
|
value={itemssname}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
: ""
|
|
|
|
:""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -236,11 +240,11 @@ class Listjihe extends Component {
|
|
|
|
<p className="w100s listjihetixingstitssy sortinxdirection ">
|
|
|
|
<p className="w100s listjihetixingstitssy sortinxdirection ">
|
|
|
|
<p id={"itemsnamesyid"} className={"sortinxdirection mt15"}>
|
|
|
|
<p id={"itemsnamesyid"} className={"sortinxdirection mt15"}>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
items && items.program_attr && items.program_attr.description ?
|
|
|
|
items&&items.program_attr&&items.program_attr.description?
|
|
|
|
<p className="programquill" style={{ wordBreak: "break-word" }}
|
|
|
|
<p className="programquill" style={{wordBreak: "break-word"}}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
itemsnamesy === null || itemsnamesy === undefined ?
|
|
|
|
itemsnamesy===null || itemsnamesy===undefined?
|
|
|
|
""
|
|
|
|
""
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<QuillForEditor
|
|
|
|
<QuillForEditor
|
|
|
@ -249,7 +253,7 @@ class Listjihe extends Component {
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
: ""
|
|
|
|
:""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|