|
|
@ -100,7 +100,7 @@ module ExportHelper
|
|
|
|
user_time = format_time(t.updated_at)
|
|
|
|
user_time = format_time(t.updated_at)
|
|
|
|
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"
|
|
|
|
w_18 = w_18 + comment_title
|
|
|
|
w_18 = w_18 + comment_title
|
|
|
|
end
|
|
|
|
end
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -172,7 +172,7 @@ module ExportHelper
|
|
|
|
user_time = format_time(t.updated_at)
|
|
|
|
user_time = format_time(t.updated_at)
|
|
|
|
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")
|
|
|
|
# ("教师:" + 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
|
|
|
@ -265,7 +265,7 @@ module ExportHelper
|
|
|
|
user_time = format_time(t.updated_at)
|
|
|
|
user_time = format_time(t.updated_at)
|
|
|
|
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")
|
|
|
|
# ("教师:" + user_name + "\n" + "时间:" + user_time.to_s + "\n" + "分数:" + user_score.to_s + "分" + "\n" + "评语:" + user_comment + "\n\n")
|
|
|
|
w_16 = w_16 + comment_title
|
|
|
|
w_16 = w_16 + comment_title
|
|
|
|
end
|
|
|
|
end
|
|
|
|