|
|
|
@ -28,11 +28,22 @@
|
|
|
|
|
|
|
|
|
|
<div id="edu-tab-con-2" class="undis">
|
|
|
|
|
<div class="mt10">
|
|
|
|
|
<p class="fl task-form-40 mt8 ml15 clearfix">
|
|
|
|
|
<p class="fl task-form-20 mt8 ml15 clearfix">
|
|
|
|
|
<a href="javascript:void(0);" class="edu-filter-cir-grey mr5 fl font-12 active" id="audit_all_authentication">全部</a>
|
|
|
|
|
<a href="javascript:void(0);" class="edu-filter-cir-grey mr5 fl font-12" id="audit_agree_authentication">同意</a>
|
|
|
|
|
<a href="javascript:void(0);" class="edu-filter-cir-grey mr5 fl font-12" id="audit_reject_authentication" >拒绝</a>
|
|
|
|
|
</p>
|
|
|
|
|
<select id="user_identity" name="identity" class="fl winput-120-40 ml15 mt5">
|
|
|
|
|
<option value="-1">请选择职业</option>
|
|
|
|
|
<option value="0">教师</option>
|
|
|
|
|
<option value="1">学生</option>
|
|
|
|
|
<option value="2">专业人士</option>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="auto_school" name="auto_school" class="fl winput-120-40 ml15 mt5">
|
|
|
|
|
<option value="0">全部</option>
|
|
|
|
|
<option value="1">自动授权</option>
|
|
|
|
|
<option value="2">非自动授权</option>
|
|
|
|
|
</select>
|
|
|
|
|
<div class="edu-position fr task-form-30 mb10 fr mr15">
|
|
|
|
|
<input class="task-form-100 panel-box-sizing " placeholder="输入真实姓名进行检索" type="text" id="audit_search_name">
|
|
|
|
|
<a href="javascript:void(0);" class="edu-btn-search font-16 color-grey mt10" id="audit_search"><i class="fa fa-search"></i></a>
|
|
|
|
@ -91,45 +102,38 @@
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/* ----------------------- 已审批(全部) ------------------------- */
|
|
|
|
|
$("#audit_all_authentication").on("click", function(){
|
|
|
|
|
var iName = $("#audit_search_name").val();
|
|
|
|
|
var sName = $("#school_search_name").val();
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "<%= trial_authorization_managements_path %>" + ".js",
|
|
|
|
|
data: { name: iName, status: [1, 2], sname: sName }
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
$("#audit_all_authentication").on("click", function(){search_func([1, 2]);});
|
|
|
|
|
|
|
|
|
|
/* ----------------------- 已审批(同意) ------------------------- */
|
|
|
|
|
$("#audit_agree_authentication").live("click", function(){
|
|
|
|
|
var iName = $("#audit_search_name").val();
|
|
|
|
|
var sName = $("#school_search_name").val();
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "<%= trial_authorization_managements_path %>" +".js",
|
|
|
|
|
data: { name: iName, status: 1, sname: sName}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
$("#audit_agree_authentication").live("click", function(){search_func(1);});
|
|
|
|
|
|
|
|
|
|
/* ----------------------- 已审批(拒绝) ------------------------- */
|
|
|
|
|
$("#audit_reject_authentication").live("click", function(){
|
|
|
|
|
var iName = $("#audit_search_name").val();
|
|
|
|
|
var sName = $("#school_search_name").val();
|
|
|
|
|
$("#audit_reject_authentication").live("click", function(){search_func(2);});
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "<%= trial_authorization_managements_path %>" +".js",
|
|
|
|
|
data: { name: iName, status: 2, sname: sName }
|
|
|
|
|
});
|
|
|
|
|
/* ------------------- 按名字进行搜索(已审批)-------------------- */
|
|
|
|
|
$("#audit_search").live("click", function(){search_func(0);});
|
|
|
|
|
$("#user_identity").on("change", function(){search_func(0);});
|
|
|
|
|
$("#auto_school").on("change", function(){search_func(0);});
|
|
|
|
|
|
|
|
|
|
$("#audit_search_name, #school_search_name").on("keydown", function(e){
|
|
|
|
|
// 兼容FF和IE和Opera
|
|
|
|
|
var theEvent = e || window.event;
|
|
|
|
|
var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
|
|
|
|
|
if (code == 13) {
|
|
|
|
|
//回车执行查询
|
|
|
|
|
search_func(0);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/* ------------------- 按名字进行搜索(已审批)-------------------- */
|
|
|
|
|
$("#audit_search").live("click", function(){
|
|
|
|
|
function search_func(status){
|
|
|
|
|
var iName = $("#audit_search_name").val();
|
|
|
|
|
var sName = $("#school_search_name").val();
|
|
|
|
|
var identity = $("#user_identity").val();
|
|
|
|
|
var auto_school = $("#auto_school").val();
|
|
|
|
|
var type = status;
|
|
|
|
|
|
|
|
|
|
if(type == 0){
|
|
|
|
|
var id = $("#audit_all_authentication").parent().find(".active").attr("id");
|
|
|
|
|
var type = 0;
|
|
|
|
|
|
|
|
|
|
if(id == "audit_all_authentication"){
|
|
|
|
|
type = [1, 2];
|
|
|
|
@ -138,12 +142,15 @@
|
|
|
|
|
}else{
|
|
|
|
|
type = 2;
|
|
|
|
|
}
|
|
|
|
|
// alert(type);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "<%= trial_authorization_managements_path %>" +".js",
|
|
|
|
|
data: { search: iName, status: type, sname: sName}
|
|
|
|
|
});
|
|
|
|
|
data: { search: iName, status: type, sname: sName, identity: identity, auto_school: auto_school}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// $(document).keyup(function(event){
|
|
|
|
|
// if(event.keyCode == 13){
|
|
|
|
|