From b69ea499fee56c3ec640c882f4164b4b27f28385 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Fri, 8 Nov 2019 15:21:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E4=BD=9C=E4=B8=9A=E8=B0=83?= =?UTF-8?q?=E5=88=86=E6=8E=A5=E5=8F=A3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/student_works/shixun_work_report.json.jbuilder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/student_works/shixun_work_report.json.jbuilder b/app/views/student_works/shixun_work_report.json.jbuilder index e3a515e7a..f6ca05bec 100644 --- a/app/views/student_works/shixun_work_report.json.jbuilder +++ b/app/views/student_works/shixun_work_report.json.jbuilder @@ -7,7 +7,7 @@ if @shixun json.shixun_name @shixun.name # 总体评价 json.overall_appraisal @work.overall_appraisal - json.myself_experience @work.myshixun.try(:total_score) + json.myself_experience @work.myshixun.try(:total_score).to_i json.total_experience @shixun.all_score json.work_score number_with_precision @work.work_score, precision: 1 json.all_work_score number_with_precision 100, precision: 1 @@ -28,7 +28,7 @@ if @shixun json.is_delay game ? student_work_is_delay?(@homework, game) : false json.open_time myshixun_open_time game json.evaluate_count game ? game&.evaluate_count : 0 - json.finished_time game ? finished_time game.end_time : "--" + json.finished_time game ? finished_time(game.end_time) : "--" json.time_consuming time_consuming game json.myself_experience game ? game&.final_score : 0 json.experience challenge.all_score