diff --git a/public/react/src/modules/question/Paperreview_single.js b/public/react/src/modules/question/Paperreview_single.js index d7c0304de..73928ed88 100644 --- a/public/react/src/modules/question/Paperreview_single.js +++ b/public/react/src/modules/question/Paperreview_single.js @@ -66,6 +66,9 @@ class Paperreview_single extends Component { let {questions,totalscore,total,items} = this.state; let {objectsingle} =this.props; // //console.log(params); + + const objectsingleid=objectsingle.id; + const objectsinglescore=`(${objectsingle.score}分)`; return (
-
-

{objectsingle.id}

({objectsingle.score}分)

-
+ {/*
*/} + {/*

{objectsingleid}

({objectsinglescore}分)

*/} + {/*
*/} -
+
{/*内容*/}
-

+ { objectsingle.item_type==="JUDGMENT"? - objectsingle === undefined ||objectsingle === null? "" : objectsingle.choices.map((object, index) => { - return ( -

- - {object.choice_text} - -

- ) - }) +

+ { + objectsingle === undefined ||objectsingle === null? "" : objectsingle.choices.map((object, index) => { + return ( +

+ + {object.choice_text} + +

+ ) + }) + } +

: - objectsingle === undefined ||objectsingle === null? "" : objectsingle.choices.map((object, index) => { - return ( -

- {tagArray[index]} -

+ objectsingle.item_type==="PROGRAM"? +

+

+

- ) - }) +

+ : +

+ { + objectsingle === undefined ||objectsingle === null? "" : objectsingle.choices.map((object, index) => { + return ( +

+ {tagArray[index]} +

+

+ ) + }) + } +

} -

+
-
+ + + + + ) } diff --git a/public/react/src/modules/question/component/Listjihe.js b/public/react/src/modules/question/component/Listjihe.js index 69d31f0e8..f592ffb16 100644 --- a/public/react/src/modules/question/component/Listjihe.js +++ b/public/react/src/modules/question/component/Listjihe.js @@ -128,6 +128,8 @@ class Listjihe extends Component {

} + +

难度:{items.difficulty===1?"简单":items.difficulty===2?"适中":items.difficulty===3?"困难":""}

题型:{items.item_type==="SINGLE"?"单选题":items.item_type==="MULTIPLE"?"多选题":items.item_type==="JUDGMENT"?"判断题":items.item_type==="PROGRAM"?"编程题":""}