From 351958f4114b5ff8a7c423c75f513430ced4f76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Thu, 2 Jan 2020 17:49:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E9=A2=98=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/question/Paperreview_single.js | 68 ++++++++++++------- .../modules/question/component/Listjihe.js | 2 + 2 files changed, 47 insertions(+), 23 deletions(-) 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"?"编程题":""}