作品列表数据调整

dev_forum
cxt 6 years ago
parent 977bfd0a13
commit c2e22e9b83

@ -34,7 +34,7 @@ elsif @user_course_identity == Course::STUDENT
json.(@work, :id, :work_status, :update_time, :ultimate_score)
json.calculation_time @work.calculation_time
json.late_penalty @work.late_penalty if @homework.allow_late
json.cost_time @work.myshixun.try(:total_cost_time)
json.cost_time @work.myshixun.try(:total_spend_time)
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)
@ -91,7 +91,7 @@ if @homework.homework_type == "practice"
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.cost_time work.myshixun.try(:total_spend_time)
json.complete_count work.myshixun.try(:passed_count)
json.user_login work.user.try(:login)
json.user_name work.user.try(:real_name)

Loading…
Cancel
Save