ADD 合作伙伴路由

dev_local
jasder 6 years ago
parent e7e304064b
commit f068ce5a8e

@ -1171,6 +1171,11 @@ end
end
end
def partners
@menu_type = 6
@sub_type = 3
end
# 删除部门管理员
def delete_depart_member
DepartmentMember.where(:department_id => params[:depart], :user_id => params[:user_id]).destroy_all

@ -708,6 +708,8 @@ module ApplicationHelper
when 6
if sub_type == 1
link_to('单位列表', departments_part_managements_path()) + "#{grandchild_type[:next_type] == 1 ? " > #{grandchild_type[:school].name}" : ""}"
elsif sub_type == 3
"合作伙伴"
else
"单位部门列表"
end

@ -71,6 +71,7 @@
<ul class="edu-admin-nav-inner edu-absolute">
<li><%= link_to "单位列表", departments_part_managements_path, :class => "edu-admin-nav-a" %></li>
<li><%= link_to "单位部门列表", departments_managements_path %></li>
<li><%= link_to "合作伙伴", partners_managements_path %></li>
</ul>
</li>
<li class="fl edu-admin-nav-li edu-position <%= 'active' if @menu_type == 7 %>"><a href="javascript:void(0);" class="edu-admin-nav-a">用户</a>

@ -544,6 +544,7 @@ RedmineApp::Application.routes.draw do ## oauth相关
match 'classroom', :via => [:get, :post]
post 'import_departments'
match 'departments', :via => [:get, :post]
get 'partners'
delete 'delete_depart_member'
get 'add_depart_member_box'
post 'add_depart_member'

Loading…
Cancel
Save