|
|
@ -163,7 +163,7 @@ module ExportHelper
|
|
|
|
end
|
|
|
|
end
|
|
|
|
w_15 = w.work_score.nil? ? "--" : w.work_score.round(1)
|
|
|
|
w_15 = w.work_score.nil? ? "--" : w.work_score.round(1)
|
|
|
|
w_16 = w.update_time ? format_time(w.update_time) : "--" "更新时间"
|
|
|
|
w_16 = w.update_time ? format_time(w.update_time) : "--" "更新时间"
|
|
|
|
w_17 = w.cost_time
|
|
|
|
w_17 = (game_spend_time w.cost_time)
|
|
|
|
teacher_comments = w.student_works_scores
|
|
|
|
teacher_comments = w.student_works_scores
|
|
|
|
if teacher_comments.present?
|
|
|
|
if teacher_comments.present?
|
|
|
|
w_18 = ""
|
|
|
|
w_18 = ""
|
|
|
@ -173,7 +173,6 @@ module ExportHelper
|
|
|
|
user_score = t&.score
|
|
|
|
user_score = t&.score
|
|
|
|
user_comment = t.comment.present? ? t.comment : "--"
|
|
|
|
user_comment = t.comment.present? ? t.comment : "--"
|
|
|
|
comment_title = "#{user_name}: #{user_time.to_s} #{user_score.to_s}分\n#{user_comment}\n\n"
|
|
|
|
comment_title = "#{user_name}: #{user_time.to_s} #{user_score.to_s}分\n#{user_comment}\n\n"
|
|
|
|
# ("教师:" + user_name + "\n" + "时间:" + user_time.to_s + "\n" + "分数:" + user_score.to_s + "分" + "\n" + "评语:" + user_comment + "\n\n")
|
|
|
|
|
|
|
|
w_18 = w_18 + comment_title
|
|
|
|
w_18 = w_18 + comment_title
|
|
|
|
end
|
|
|
|
end
|
|
|
|
else
|
|
|
|
else
|
|
|
|