diff --git a/app/controllers/student_works_controller.rb b/app/controllers/student_works_controller.rb index ad684952d..cd742a178 100644 --- a/app/controllers/student_works_controller.rb +++ b/app/controllers/student_works_controller.rb @@ -476,7 +476,7 @@ class StudentWorksController < ApplicationController end # 图形效率图的数据 - @echart_data = student_efficiency(@homework, @work) + @echart_data = student_efficiency(@homework, @work) if @work.myshixun end # 实训作品的评阅 diff --git a/app/views/student_works/shixun_work_report.json.jbuilder b/app/views/student_works/shixun_work_report.json.jbuilder index cda78d93c..40b0e28c2 100644 --- a/app/views/student_works/shixun_work_report.json.jbuilder +++ b/app/views/student_works/shixun_work_report.json.jbuilder @@ -3,6 +3,7 @@ json.category @homework.category_info json.course_name @course.name json.work_id @work.id json.work_efficiency @homework.work_efficiency +json.has_commit @work.myshixun.present? if @shixun json.shixun_name @shixun.name # 总体评价