|
|
|
@ -13,7 +13,7 @@ class Admins::CoursesController < Admins::BaseController
|
|
|
|
|
format.js
|
|
|
|
|
format.html
|
|
|
|
|
format.xlsx do
|
|
|
|
|
@courses = courses.includes(:school, :students, :teacher_course_members, :informs, :course_videos, :attachments, :homework_commons, :course_activities, teacher: [user_extension: :department])
|
|
|
|
|
@courses = courses.not_deleted.includes(:school, :students, :teacher_course_members, :informs, :course_videos, :attachments, :homework_commons, :course_activities, teacher: [user_extension: :department])
|
|
|
|
|
filename = "课堂列表_#{Time.current.strftime('%Y%m%d%H%M%S')}.xlsx"
|
|
|
|
|
render xlsx: 'index', filename: filename
|
|
|
|
|
end
|
|
|
|
|