From fc2c4e9cde1309d37ae03f871a6e7199708e3f38 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Tue, 23 Jul 2019 17:17:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=8B=A9=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/exercise/new/SingleDisplay.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/public/react/src/modules/courses/exercise/new/SingleDisplay.js b/public/react/src/modules/courses/exercise/new/SingleDisplay.js index 453cce229..4018fcbbe 100644 --- a/public/react/src/modules/courses/exercise/new/SingleDisplay.js +++ b/public/react/src/modules/courses/exercise/new/SingleDisplay.js @@ -54,7 +54,7 @@ class SingleDisplay extends Component{ } render() { let { question_title, question_score, question_type, question_choices, standard_answer, - question_id, question_number, index, displayCount + question_id, question_number, index, displayCount, showActionButton } = this.props; // const { getFieldDecorator } = this.props.form; @@ -70,6 +70,9 @@ class SingleDisplay extends Component{ // const answerTagArray = standard_answer.map((item, index) => { return item == true ? tagArray[index] : -1 }).filter(item => item != -1); let length = 5; const qName = qNameArray[question_type] + + const isPreviewPage = showActionButton == false + return(