|
|
|
@ -107,6 +107,15 @@ class GraduationTasksController < ApplicationController
|
|
|
|
|
@work_list = @task.graduation_works.where(id: graduation_work_id)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 组员、组长作品的筛选
|
|
|
|
|
if @task.task_type == 2 && !params[:member_work].blank?
|
|
|
|
|
if params[:member_work].to_i == 1
|
|
|
|
|
@work_list = @work_list.where("user_id = commit_user_id")
|
|
|
|
|
elsif params[:member_work].to_i == 0
|
|
|
|
|
@work_list = @work_list.where("user_id != commit_user_id")
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 输入姓名和学号搜索
|
|
|
|
|
# TODO user_extension 如果修改 请调整
|
|
|
|
|
unless params[:search].blank?
|
|
|
|
|