dev_local
jasder 6 years ago
parent 450876fd39
commit 2c1bd03c46

@ -1206,6 +1206,18 @@ end
end end
end end
# 添加合作伙伴管理员- 弹框
def add_partner_member_box
@partner = Partner.first
@members =
if params[:search]
User.where("LOWER(concat(lastname, firstname, nickname, mail)) LIKE '%#{params[:search]}%'")
else
User.where(:certification => 1)
end
@members = paginateHelper @members, 8
end
# check 部门 identifier是否重复 # check 部门 identifier是否重复
def check_depart_identifier def check_depart_identifier
logger.info("###############{params}") logger.info("###############{params}")

@ -33,24 +33,22 @@
<span class="fl edu-txt-w100 edu-txt-center">手机号</span> <span class="fl edu-txt-w100 edu-txt-center">手机号</span>
</p> </p>
<div class="edu-back-skyblue clearfix pl10 over280" id="serch_user_list"> <div class="edu-back-skyblue clearfix pl10 over280" id="serch_user_list">
<p class="clearfix">
<span class="fl edu-txt-w90"> <%= form_for @partner, :url => add_depart_member_managements_path,:html => {:id => 'add_depart_member_form', :remote => true, :method => :post} do |f| %>
<input type="checkbox" name="user_id[]" value="12545" id="user_12545" class="magic-checkbox"> <% @members.each do |member| %>
<label for="user_12545">李健</label> <p class="clearfix">
</span> <span class="fl edu-txt-w90">
<span class="fl edu-txt-w90 mt5 edu-txt-center color-grey-6 pointer">学生</span> <input type="checkbox" name="partner_member[]" value="<%= member.id %>" id="user_<%= member.id %>" class="magic-checkbox">
<span class="fl task-hide edu-txt-w200 mt5 edu-txt-left color-grey-9">湖北工业大学 </span> <label for="user_<%= member.id %>"><%= member.show_real_name %></label>
<span class="fl edu-txt-w100 mt5 edu-txt-center color-grey-9">156****9087</span> </span>
</p> <span class="fl edu-txt-w90 mt5 edu-txt-center color-grey-6 pointer"><%= member.identity %></span>
<p class="clearfix"> <span class="fl task-hide edu-txt-w200 mt5 edu-txt-left color-grey-9"><%= member.school_name %> </span>
<span class="fl edu-txt-w90"> <span class="fl edu-txt-w100 mt5 edu-txt-center color-grey-9"><%= member.phone %></span>
<input type="checkbox" name="user_id[]" value="12545" id="user_12545" class="magic-checkbox"> </p>
<label for="user_12545">李健</label> <% end %>
</span> <% end %>
<span class="fl edu-txt-w90 mt5 edu-txt-center color-grey-6 pointer">学生</span>
<span class="fl task-hide edu-txt-w200 mt5 edu-txt-left color-grey-9">湖北工业大学 </span>
<span class="fl edu-txt-w100 mt5 edu-txt-center color-grey-9"></span>
</p>
</div> </div>
</div> </div>
<p class="color-orange-tip" id="form_notice"></p> <p class="color-orange-tip" id="form_notice"></p>

@ -0,0 +1,7 @@
<% if params[:search] || params[:page] %>
$("#depart_member_search_list").html("<%= j(render :partial => "depart_member_search_list") %>")
<% else %>
var html="<%= escape_javascript(render :partial => "managements/partner_addManage") %>";
pop_box_new(html,572,500);
<% end %>

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

Loading…
Cancel
Save