|
|
@ -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
|
|
|
|