实训题的提交耗时的修改

dev_forum
SylorHuang 5 years ago
parent 5bfd875ffa
commit 1f6f1dadec

@ -163,7 +163,7 @@ module ExportHelper
end
w_15 = w.work_score.nil? ? "--" : w.work_score.round(1)
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
if teacher_comments.present?
w_18 = ""
@ -173,7 +173,6 @@ module ExportHelper
user_score = t&.score
user_comment = t.comment.present? ? t.comment : "--"
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
end
else

@ -22,7 +22,7 @@ index = 1
json.game_list @myshixun.games do |game|
json.position index
json.end_time game.end_time ? game.end_time : '--'
json.cost_time game.cost_time
json.cost_time (game_spend_time game.cost_time)
json.score game.final_score
json.complete_status game_status(game, @homework)
index += 1

Loading…
Cancel
Save