|
|
@ -45,16 +45,6 @@ class GraduationTopicsController < ApplicationController
|
|
|
|
end
|
|
|
|
end
|
|
|
|
## 分页参数
|
|
|
|
## 分页参数
|
|
|
|
@current_user = current_user
|
|
|
|
@current_user = current_user
|
|
|
|
course_group_ids = @course.course_members.where(user_id: current_user.id, role: [1,2,3]).pluck(:course_group_id).uniq
|
|
|
|
|
|
|
|
#6.11 -hs
|
|
|
|
|
|
|
|
if course_group_ids.present?
|
|
|
|
|
|
|
|
if course_group_ids.include?(0)
|
|
|
|
|
|
|
|
course_group_ids = @course.course_groups.pluck(:id)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@group_list = CourseGroup.where(id: course_group_ids)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
page = params[:page] || 1
|
|
|
|
page = params[:page] || 1
|
|
|
|
limit = params[:limit] || 50
|
|
|
|
limit = params[:limit] || 50
|
|
|
|
@users_count = @student_graduation_topics.try(:count).to_i
|
|
|
|
@users_count = @student_graduation_topics.try(:count).to_i
|
|
|
|