dev_aliyun2
杨树林 5 years ago committed by harry
parent 7467cc0455
commit 330caed864

@ -79,7 +79,9 @@ class Paperreview_single extends Component {
itemsnamesy = objectsingle && objectsingle.program_attr && objectsingle.program_attr.description; itemsnamesy = objectsingle && objectsingle.program_attr && objectsingle.program_attr.description;
} }
var fenshul=(objectsingle.score+"分"); var fenshul=(objectsingle.score+"分");
const options = [
'bold', // 加粗
]
return ( return (
<div key={indexxy} <div key={indexxy}
className={"w100s borderwdswuh mb20 pd20 "} className={"w100s borderwdswuh mb20 pd20 "}
@ -162,6 +164,7 @@ class Paperreview_single extends Component {
"" ""
: :
<QuillForEditor <QuillForEditor
options={options}
readOnly={true} readOnly={true}
value={itemssname} value={itemssname}
/> />

@ -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>
: "" :""
} }

@ -77,6 +77,9 @@ class Paperlibraryseeid_items extends Component {
} catch (e) { } catch (e) {
itemsnamesy = objectsingle && objectsingle.program_attr && objectsingle.program_attr.description; itemsnamesy = objectsingle && objectsingle.program_attr && objectsingle.program_attr.description;
} }
const options = [
'bold', // 加粗
]
return ( return (
<div key={indexxy} <div key={indexxy}
className={"w100s borderwdswuh mb20 pd20 "} className={"w100s borderwdswuh mb20 pd20 "}
@ -159,6 +162,7 @@ class Paperlibraryseeid_items extends Component {
"" ""
: :
<QuillForEditor <QuillForEditor
options={options}
readOnly={true} readOnly={true}
value={itemssname} value={itemssname}
/> />

Loading…
Cancel
Save