From 32c678ed3b8fa334765ed4c1461c043f662510df Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Sat, 22 Jun 2019 10:25:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E5=8D=B7=EF=BC=9Aq=5Fposition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/courses/coursesPublic/HomeworkModal.js | 6 +++--- .../modules/courses/exercise/ExerciseReviewAndAnswer.js | 2 +- .../src/modules/courses/exercise/question/fillEmpty.js | 8 ++++---- .../src/modules/courses/exercise/question/multiple.js | 3 ++- .../src/modules/courses/exercise/question/simpleAnswer.js | 2 +- public/react/src/modules/user/usersInfo/Infos.js | 2 +- public/react/src/modules/user/usersInfo/InfosProject.js | 4 ++-- 7 files changed, 14 insertions(+), 13 deletions(-) diff --git a/public/react/src/modules/courses/coursesPublic/HomeworkModal.js b/public/react/src/modules/courses/coursesPublic/HomeworkModal.js index f448483d2..bc2fb60b5 100644 --- a/public/react/src/modules/courses/coursesPublic/HomeworkModal.js +++ b/public/react/src/modules/courses/coursesPublic/HomeworkModal.js @@ -200,7 +200,7 @@ class HomeworkModal extends Component{ {this.props.modaltype===undefined||this.props.modaltype===2||this.props.modaltype===4 || !course_groups || course_groups.length == 0 || this.props.usingCheckBeforePost ?"":
- {exercise_questions.q_position}、{type[item.question_type]}({item.question_score}分)
+ {item.q_position}、{type[item.question_type]}({item.question_score}分)
{
// 填空(一直都有调分),和简答题调分:老师身份 已经评分的才能出现调分按钮
diff --git a/public/react/src/modules/courses/exercise/question/fillEmpty.js b/public/react/src/modules/courses/exercise/question/fillEmpty.js
index 030dec7e8..b5e8d62b5 100644
--- a/public/react/src/modules/courses/exercise/question/fillEmpty.js
+++ b/public/react/src/modules/courses/exercise/question/fillEmpty.js
@@ -65,7 +65,7 @@ class fillEmpty extends Component{
if(array[i].value ==""){ count++; }
}
let k = count==array.length ? 0 : 1;
- this.props.changeQuestionStatus && this.props.changeQuestionStatus(parseInt(this.props.questionType.question_number)-1,k);
+ this.props.changeQuestionStatus && this.props.changeQuestionStatus(parseInt(this.props.questionType.q_position)-1,k);
}
}).catch((error)=>{
console.log(error);
@@ -115,11 +115,11 @@ class fillEmpty extends Component{
: