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

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

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

Loading…
Cancel
Save