|
|
|
@ -25,6 +25,28 @@ const tagArrays = [
|
|
|
|
|
'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
|
|
|
|
|
'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'
|
|
|
|
|
]
|
|
|
|
|
const questionType = [
|
|
|
|
|
{
|
|
|
|
|
type:'SINGLE',
|
|
|
|
|
color:'typeGreen',
|
|
|
|
|
name:'单选题'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type:'MULTIPLE',
|
|
|
|
|
color:'typeBlue',
|
|
|
|
|
name:'多选题'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type:'JUDGMENT',
|
|
|
|
|
color:'typeRed',
|
|
|
|
|
name:'判断题'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type:'PROGRAM',
|
|
|
|
|
color:'typeYellow',
|
|
|
|
|
name:'编程题'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
//Paperreview_single.js Paperlibraryseeid_items.js
|
|
|
|
|
class Listjihe extends Component {
|
|
|
|
|
constructor(props) {
|
|
|
|
@ -233,7 +255,7 @@ class Listjihe extends Component {
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const types = questionType.filter(item=>item.type === items.item_type);
|
|
|
|
|
return (
|
|
|
|
|
<div key={keindex}
|
|
|
|
|
className={chakanjiexiboolindex === keindex ? "w100s borderwds283 pd20 mb20 listjihecolors" : "borderwds pd20 mb20 listjihecolors"}>
|
|
|
|
@ -301,6 +323,7 @@ class Listjihe extends Component {
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div className="w100s sortinxdirection">
|
|
|
|
|
<span className={`typesBtn ${types && types[0].color}`}>{types && types[0].name}</span>
|
|
|
|
|
<div className="listjihetixingstitsy" style={{
|
|
|
|
|
fontWeight:"bold"
|
|
|
|
|
}} >
|
|
|
|
@ -311,10 +334,10 @@ class Listjihe extends Component {
|
|
|
|
|
{
|
|
|
|
|
items.item_type==="PROGRAM"?
|
|
|
|
|
<a onClick={()=>this.seturls(`/problems/${items.program_attr.identifier}/edit`)} >
|
|
|
|
|
<div className="ml10 w100s " style={{wordBreak: "break-word",fontWeight:"bold"}} dangerouslySetInnerHTML={{__html: markdownToHTML(items&&items.name).replace(/▁/g, "▁▁▁")}}></div>
|
|
|
|
|
<div className="ml10 w100s flex1 mt2" style={{wordBreak: "break-word",fontWeight:"bold"}} dangerouslySetInnerHTML={{__html: markdownToHTML(items&&items.name).replace(/▁/g, "▁▁▁")}}></div>
|
|
|
|
|
</a>
|
|
|
|
|
:
|
|
|
|
|
<div className="ml10 w100s markdown-body" style={{wordBreak: "break-word",fontWeight:"bold"}}>
|
|
|
|
|
<div className="ml10 w100s flex1 markdown-body mt3" style={{wordBreak: "break-word",fontWeight:"bold"}}>
|
|
|
|
|
|
|
|
|
|
{ items===undefined||items===null||items===""?"":
|
|
|
|
|
items.name === undefined || items.name === null || items.name === "" ?
|
|
|
|
|