diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index bd7e961a..e6645b3f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -318,11 +318,15 @@ module ApplicationHelper # TPM查看权限 # result一般为页面权限 def shixun_view_allow shixun, result = nil - if User.current.manager_of_shixun?(shixun) + if params[:openi].to_i == 1 result ? false : true else - if shixun.status == 0 || (shixun.use_scope == 1 && !shixun.schools.map(&:name).include?(User.current.school_name)) - result ? true : (render_403) + if User.current.manager_of_shixun?(shixun) + result ? false : true + else + if shixun.status == 0 || (shixun.use_scope == 1 && !shixun.schools.map(&:name).include?(User.current.school_name)) + result ? true : (render_403) + end end end end diff --git a/app/views/layouts/base_management.html.erb b/app/views/layouts/base_management.html.erb index e685d10d..4f188f78 100644 --- a/app/views/layouts/base_management.html.erb +++ b/app/views/layouts/base_management.html.erb @@ -55,9 +55,10 @@
  • 实训课程+
  • 职业路径
  • diff --git a/app/views/managements/_class_level_system.html.erb b/app/views/managements/_class_level_system.html.erb new file mode 100644 index 00000000..7a25d233 --- /dev/null +++ b/app/views/managements/_class_level_system.html.erb @@ -0,0 +1,88 @@ +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    等级名称实训课程数创建时间操作
    1初级课程5002019-03-02 10:38 + 删除 + 重命名 +
    2初级课程--2019-03-02 10:38 + 删除 + 重命名 +
    + + 新建 +
    +
    + + + \ No newline at end of file