|
|
|
@ -73,8 +73,9 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
|
setScoreReason:undefined,
|
|
|
|
|
setTip:"",
|
|
|
|
|
|
|
|
|
|
Id:undefined
|
|
|
|
|
|
|
|
|
|
Id:undefined,
|
|
|
|
|
// 试卷总分
|
|
|
|
|
exerciseTotalScore:undefined
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
componentDidUpdate (prevProps) {
|
|
|
|
@ -185,7 +186,8 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
|
exercise_answer_user:result.data.exercise_answer_user,
|
|
|
|
|
exercise_questions:result.data.exercise_questions,
|
|
|
|
|
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)=>{
|
|
|
|
@ -207,7 +209,8 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
|
exercise_scores:result.data.exercise_scores,
|
|
|
|
|
exercise_questions:result.data.exercise_questions,
|
|
|
|
|
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){
|
|
|
|
|
this.remainTime();
|
|
|
|
@ -490,7 +493,8 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
|
modalsBottomval,
|
|
|
|
|
ModalCancel,
|
|
|
|
|
ModalSave,
|
|
|
|
|
Loadtype
|
|
|
|
|
Loadtype,
|
|
|
|
|
exerciseTotalScore
|
|
|
|
|
}=this.state
|
|
|
|
|
let isAdmin = this.props.isAdmin();
|
|
|
|
|
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_answer_user && !!exercise_answer_user.score &&
|
|
|
|
|
<span className="color-grey-9 fr">总分:<span className="color-orange-tip"> { exercise_answer_user.score }</span> 分</span>
|
|
|
|
|
(isAdmin || (isStudent && exercise && exercise.exercise_status == 3)) && exerciseTotalScore &&
|
|
|
|
|
<span className="color-grey-9 fr">总分:<span className="color-orange-tip"> { exerciseTotalScore }</span> 分</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
{
|
|
|
|
@ -656,7 +660,7 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
|
return(
|
|
|
|
|
<div className="bor-top-greyE pt30 pb30" id={"Anchor_"+parseInt(key+1)}>
|
|
|
|
|
<p className="clearfix font-16 pl30 pr30">
|
|
|
|
|
<span className="color-blue mr5">{exercise_questions.q_position}、{type[item.question_type]}</span><span className="color-grey-9 mr5">({item.question_score}分)</span>
|
|
|
|
|
<span className="color-blue mr5">{item.q_position}、{type[item.question_type]}</span><span className="color-grey-9 mr5">({item.question_score}分)</span>
|
|
|
|
|
<span className="fr">
|
|
|
|
|
{
|
|
|
|
|
// 填空(一直都有调分),和简答题调分:老师身份 已经评分的才能出现调分按钮
|
|
|
|
|