|
|
@ -714,9 +714,9 @@ module ExercisesHelper
|
|
|
|
end
|
|
|
|
end
|
|
|
|
teacher_review = ex_user.subjective_score < 0.0 ? false : true
|
|
|
|
teacher_review = ex_user.subjective_score < 0.0 ? false : true
|
|
|
|
if (user_status == 0 && commit_status == 1) || (user_status == 1 && ex_user_exercise_status == 3 && commit_status == 1) #老师都可以看,学生,需在试卷已提交,且已截止的情况下看
|
|
|
|
if (user_status == 0 && commit_status == 1) || (user_status == 1 && ex_user_exercise_status == 3 && commit_status == 1) #老师都可以看,学生,需在试卷已提交,且已截止的情况下看
|
|
|
|
ex_object_score = ex_user.objective_score < 0.0 ? 0.0 : ex_user.objective_score.round(1).to_s
|
|
|
|
ex_object_score = ex_user.objective_score <= 0.0 ? 0 : ex_user.objective_score.round(1).to_s
|
|
|
|
ex_subject_score = ex_user.subjective_score < 0.0 ? nil : ex_user.subjective_score.round(1).to_s
|
|
|
|
ex_subject_score = ex_user.subjective_score < 0.0 ? nil : ex_user.subjective_score.round(1).to_s
|
|
|
|
score = ex_user.score.present? ? ex_user.score.round(1).to_s : 0.0.to_s
|
|
|
|
score = ex_user.score.present? && ex_user.score > 0.0 ? ex_user.score.round(1).to_s : 0.to_s
|
|
|
|
else
|
|
|
|
else
|
|
|
|
ex_object_score = nil
|
|
|
|
ex_object_score = nil
|
|
|
|
ex_subject_score = nil
|
|
|
|
ex_subject_score = nil
|
|
|
|