|
|
@ -106,6 +106,12 @@ elsif @homework.homework_type == "group" || @homework.homework_type == "normal"
|
|
|
|
|
|
|
|
|
|
|
|
json.student_score work_score_format(anon_comments(@current_user, work.id).last.try(:score), false, true)
|
|
|
|
json.student_score work_score_format(anon_comments(@current_user, work.id).last.try(:score), false, true)
|
|
|
|
# json.student_comment_count anon_comments(@current_user, work.id).count
|
|
|
|
# json.student_comment_count anon_comments(@current_user, work.id).count
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 申诉条数
|
|
|
|
|
|
|
|
if @homework.anonymous_appeal
|
|
|
|
|
|
|
|
json.appeal_all_count work.my_appeal_all_count @current_user.id
|
|
|
|
|
|
|
|
json.appeal_deal_count work.my_appeal_deal_count @current_user.id
|
|
|
|
|
|
|
|
end
|
|
|
|
else
|
|
|
|
else
|
|
|
|
json.(work, :id, :work_status, :update_time, :work_score, :final_score, :teacher_score, :student_score,
|
|
|
|
json.(work, :id, :work_status, :update_time, :work_score, :final_score, :teacher_score, :student_score,
|
|
|
|
:teaching_asistant_score, :ultimate_score)
|
|
|
|
:teaching_asistant_score, :ultimate_score)
|
|
|
@ -134,7 +140,6 @@ elsif @homework.homework_type == "group" || @homework.homework_type == "normal"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
json.work_group work.work_group_name
|
|
|
|
json.work_group work.work_group_name
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 申诉条数
|
|
|
|
# 申诉条数
|
|
|
|
if @homework.anonymous_appeal
|
|
|
|
if @homework.anonymous_appeal
|
|
|
@ -142,6 +147,7 @@ elsif @homework.homework_type == "group" || @homework.homework_type == "normal"
|
|
|
|
json.appeal_deal_count work.appeal_deal_count
|
|
|
|
json.appeal_deal_count work.appeal_deal_count
|
|
|
|
json.appeal_penalty work.appeal_penalty
|
|
|
|
json.appeal_penalty work.appeal_penalty
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
json.user_login @is_evaluation ? "--" : work.user.try(:login)
|
|
|
|
json.user_login @is_evaluation ? "--" : work.user.try(:login)
|
|
|
|
json.user_name @is_evaluation ? "匿名" : work.user.try(:real_name)
|
|
|
|
json.user_name @is_evaluation ? "匿名" : work.user.try(:real_name)
|
|
|
|