|
|
@ -73,8 +73,9 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
setScoreReason:undefined,
|
|
|
|
setScoreReason:undefined,
|
|
|
|
setTip:"",
|
|
|
|
setTip:"",
|
|
|
|
|
|
|
|
|
|
|
|
Id:undefined
|
|
|
|
Id:undefined,
|
|
|
|
|
|
|
|
// 试卷总分
|
|
|
|
|
|
|
|
exerciseTotalScore:undefined
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
componentDidUpdate (prevProps) {
|
|
|
|
componentDidUpdate (prevProps) {
|
|
|
@ -185,7 +186,8 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
exercise_answer_user:result.data.exercise_answer_user,
|
|
|
|
exercise_answer_user:result.data.exercise_answer_user,
|
|
|
|
exercise_questions:result.data.exercise_questions,
|
|
|
|
exercise_questions:result.data.exercise_questions,
|
|
|
|
user_exercise_status:1,
|
|
|
|
user_exercise_status:1,
|
|
|
|
Id:result.data.exercise_answer_user.user_id
|
|
|
|
Id:result.data.exercise_answer_user.user_id,
|
|
|
|
|
|
|
|
exerciseTotalScore:result.data.exercise_answer_user.score
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((error)=>{
|
|
|
|
}).catch((error)=>{
|
|
|
@ -207,7 +209,8 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
exercise_scores:result.data.exercise_scores,
|
|
|
|
exercise_scores:result.data.exercise_scores,
|
|
|
|
exercise_questions:result.data.exercise_questions,
|
|
|
|
exercise_questions:result.data.exercise_questions,
|
|
|
|
user_exercise_status:result.data.exercise.user_exercise_status,
|
|
|
|
user_exercise_status:result.data.exercise.user_exercise_status,
|
|
|
|
time:result.data.exercise.left_time
|
|
|
|
time:result.data.exercise.left_time,
|
|
|
|
|
|
|
|
exerciseTotalScore:result.data.user_score
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if(result.data.exercise.left_time != null){
|
|
|
|
if(result.data.exercise.left_time != null){
|
|
|
|
this.remainTime();
|
|
|
|
this.remainTime();
|
|
|
@ -490,7 +493,8 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
modalsBottomval,
|
|
|
|
modalsBottomval,
|
|
|
|
ModalCancel,
|
|
|
|
ModalCancel,
|
|
|
|
ModalSave,
|
|
|
|
ModalSave,
|
|
|
|
Loadtype
|
|
|
|
Loadtype,
|
|
|
|
|
|
|
|
exerciseTotalScore
|
|
|
|
}=this.state
|
|
|
|
}=this.state
|
|
|
|
let isAdmin = this.props.isAdmin();
|
|
|
|
let isAdmin = this.props.isAdmin();
|
|
|
|
let isStudent =this.props.isStudent();
|
|
|
|
let isStudent =this.props.isStudent();
|
|
|
@ -579,8 +583,8 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
exercise_start_at && <span className="fl color-grey-9">开始答题时间:{ exercise_start_at && moment(exercise_start_at).format(format) }</span>
|
|
|
|
exercise_start_at && <span className="fl color-grey-9">开始答题时间:{ exercise_start_at && moment(exercise_start_at).format(format) }</span>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
{
|
|
|
|
exercise_answer_user && !!exercise_answer_user.score &&
|
|
|
|
(isAdmin || (isStudent && exercise && exercise.exercise_status == 3)) && exerciseTotalScore &&
|
|
|
|
<span className="color-grey-9 fr">总分:<span className="color-orange-tip"> { exercise_answer_user.score }</span> 分</span>
|
|
|
|
<span className="color-grey-9 fr">总分:<span className="color-orange-tip"> { exerciseTotalScore }</span> 分</span>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{
|
|
|
|
{
|
|
|
|