dev_SaaS
cxt 6 years ago
parent 81ab00f482
commit 649e2a7ba6

@ -102,13 +102,9 @@ class EcCoursesController < ApplicationController
end end
def ec_course_support_setting_data def ec_course_support_setting_data
respond_to do |format|
format.json {
course_targets = @ec_course.ec_course_targets.includes(:ec_graduation_subitems) course_targets = @ec_course.ec_course_targets.includes(:ec_graduation_subitems)
json_data = target_list_data(course_targets) json_data = target_list_data(course_targets)
render :json => json_data render :json => json_data
}
end
end end
# 课程目标配置的更新操作() # 课程目标配置的更新操作()

@ -58,8 +58,6 @@ class EcYearsController < ApplicationController
end end
def student_lists_data def student_lists_data
respond_to do |format|
format.json {
template_file = EcTemplate.find_by_name "学生列表导入模板" template_file = EcTemplate.find_by_name "学生列表导入模板"
if template_file.present? if template_file.present?
file = template_file.attachments.first file = template_file.attachments.first
@ -88,8 +86,6 @@ class EcYearsController < ApplicationController
render :json => {template_url: template_url, ec_students: ec_students, total_page: total_page, import_url: import_url, render :json => {template_url: template_url, ec_students: ec_students, total_page: total_page, import_url: import_url,
show_name: show_name, :total_student => total_student, :is_manager => @template_major} show_name: show_name, :total_student => total_student, :is_manager => @template_major}
}
end
end end
# DELETE: /ec_major_schools/:major_id/academic_years/:year_id/destroy_students # DELETE: /ec_major_schools/:major_id/academic_years/:year_id/destroy_students

Loading…
Cancel
Save