|
|
|
@ -33,19 +33,19 @@ elsif @user_course_identity == Course::STUDENT
|
|
|
|
|
|
|
|
|
|
json.late_penalty @work.late_penalty if @homework.allow_late
|
|
|
|
|
json.cost_time @work.myshixun.try(:total_cost_time)
|
|
|
|
|
json.work_score work_score_format(@work.work_score, true, @homework.score_open)
|
|
|
|
|
json.final_score work_score_format(@work.final_score, true, @homework.score_open)
|
|
|
|
|
json.efficiency work_score_format(@work.efficiency, true, @homework.score_open)
|
|
|
|
|
json.eff_score work_score_format(@work.eff_score, true, @homework.score_open)
|
|
|
|
|
json.work_score work_score_format(@work.work_score, true, @score_open)
|
|
|
|
|
json.final_score work_score_format(@work.final_score, true, @score_open)
|
|
|
|
|
json.efficiency work_score_format(@work.efficiency, true, @score_open)
|
|
|
|
|
json.eff_score work_score_format(@work.eff_score, true, @score_open)
|
|
|
|
|
json.complete_count @work.myshixun.try(:passed_count)
|
|
|
|
|
else
|
|
|
|
|
json.(@work, :id, :work_status, :update_time, :ultimate_score)
|
|
|
|
|
|
|
|
|
|
json.work_score work_score_format(@work.work_score, true, @homework.score_open)
|
|
|
|
|
json.final_score work_score_format(@work.final_score, true, @homework.score_open)
|
|
|
|
|
json.teacher_score work_score_format(@work.teacher_score, true, @homework.score_open)
|
|
|
|
|
json.student_score work_score_format(@work.student_score, true, @homework.score_open)
|
|
|
|
|
json.teaching_asistant_score work_score_format(@work.teaching_asistant_score, true, @homework.score_open)
|
|
|
|
|
json.work_score work_score_format(@work.work_score, true, @score_open)
|
|
|
|
|
json.final_score work_score_format(@work.final_score, true, @score_open)
|
|
|
|
|
json.teacher_score work_score_format(@work.teacher_score, true, @score_open)
|
|
|
|
|
json.student_score work_score_format(@work.student_score, true, @score_open)
|
|
|
|
|
json.teaching_asistant_score work_score_format(@work.teaching_asistant_score, true, @score_open)
|
|
|
|
|
|
|
|
|
|
json.ta_comment_count @work.ta_comment_count
|
|
|
|
|
|
|
|
|
@ -84,10 +84,10 @@ if @homework.homework_type == "practice"
|
|
|
|
|
json.(work, :id, :work_status, :update_time, :ultimate_score)
|
|
|
|
|
|
|
|
|
|
json.late_penalty work.late_penalty if @homework.allow_late
|
|
|
|
|
json.work_score work_score_format(work.work_score, @current_user == work.user, @homework.score_open)
|
|
|
|
|
json.final_score work_score_format(work.final_score, @current_user == work.user, @homework.score_open)
|
|
|
|
|
json.efficiency work_score_format(work.efficiency, @current_user == work.user, @homework.score_open)
|
|
|
|
|
json.eff_score work_score_format(work.eff_score, @current_user == work.user, @homework.score_open)
|
|
|
|
|
json.work_score work_score_format(work.work_score, @current_user == work.user, @score_open)
|
|
|
|
|
json.final_score work_score_format(work.final_score, @current_user == work.user, @score_open)
|
|
|
|
|
json.efficiency work_score_format(work.efficiency, @current_user == work.user, @score_open)
|
|
|
|
|
json.eff_score work_score_format(work.eff_score, @current_user == work.user, @score_open)
|
|
|
|
|
|
|
|
|
|
json.cost_time work.myshixun.try(:total_cost_time)
|
|
|
|
|
json.complete_count work.myshixun.try(:passed_count)
|
|
|
|
@ -117,11 +117,11 @@ elsif @homework.homework_type == "group" || @homework.homework_type == "normal"
|
|
|
|
|
:teaching_asistant_score, :ultimate_score)
|
|
|
|
|
|
|
|
|
|
json.late_penalty work.late_penalty if @homework.allow_late
|
|
|
|
|
json.work_score work_score_format(work.work_score, @current_user == work.user, @homework.score_open)
|
|
|
|
|
json.final_score work_score_format(work.final_score, @current_user == work.user, @homework.score_open)
|
|
|
|
|
json.teacher_score work_score_format(work.teacher_score, @current_user == work.user, @homework.score_open)
|
|
|
|
|
json.student_score work_score_format(work.student_score, @current_user == work.user, @homework.score_open)
|
|
|
|
|
json.teaching_asistant_score work_score_format(work.teaching_asistant_score, @current_user == work.user, @homework.score_open)
|
|
|
|
|
json.work_score work_score_format(work.work_score, @current_user == work.user, @score_open)
|
|
|
|
|
json.final_score work_score_format(work.final_score, @current_user == work.user, @score_open)
|
|
|
|
|
json.teacher_score work_score_format(work.teacher_score, @current_user == work.user, @score_open)
|
|
|
|
|
json.student_score work_score_format(work.student_score, @current_user == work.user, @score_open)
|
|
|
|
|
json.teaching_asistant_score work_score_format(work.teaching_asistant_score, @current_user == work.user, @score_open)
|
|
|
|
|
|
|
|
|
|
# 助教评分次数
|
|
|
|
|
json.ta_comment_count work.ta_comment_count
|
|
|
|
|