|
|
@ -31,15 +31,11 @@ class EcYearsController < ApplicationController
|
|
|
|
end
|
|
|
|
end
|
|
|
|
@status = 1
|
|
|
|
@status = 1
|
|
|
|
end
|
|
|
|
end
|
|
|
|
logger.info("1387308227")
|
|
|
|
@major_manager = true
|
|
|
|
@major_manager = User.current.admin? ||
|
|
|
|
|
|
|
|
@major_school.school.ec_school_users.pluck(:user_id).include?(User.current.id) ||
|
|
|
|
|
|
|
|
@major_school.ec_major_school_users.pluck(:user_id).include?(User.current.id)
|
|
|
|
|
|
|
|
@btn_text = @major_school.template_major && User.current.admin? ? "立即配置" :
|
|
|
|
@btn_text = @major_school.template_major && User.current.admin? ? "立即配置" :
|
|
|
|
(!@major_school.template_major && @major_manager ? "立即配置" : "查看")
|
|
|
|
(!@major_school.template_major && @major_manager ? "立即配置" : "查看")
|
|
|
|
@years = @major_school.ec_years
|
|
|
|
@years = @major_school.ec_years
|
|
|
|
@years = paginateHelper @years, 10
|
|
|
|
@years = paginateHelper @years, 10
|
|
|
|
logger.info("1370740521")
|
|
|
|
|
|
|
|
respond_to do |format|
|
|
|
|
respond_to do |format|
|
|
|
|
format.js
|
|
|
|
format.js
|
|
|
|
end
|
|
|
|
end
|
|
|
|