|
|
@ -65,15 +65,9 @@
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
var order = "desc"
|
|
|
|
var order = "desc"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var user_status = $("input[name='user_status']").val();
|
|
|
|
$("input[name='us_order']").val(order);
|
|
|
|
var research_condition = $("input[name='research_condition']").val();
|
|
|
|
$("input[name='order_key']").val("created_on");
|
|
|
|
var research_contents = $("input[name='research_contents']").val();
|
|
|
|
$("#managements_users_search").submit();
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
url: "<%= users_managements_path %>",
|
|
|
|
|
|
|
|
type: "post",
|
|
|
|
|
|
|
|
dataType: "script",
|
|
|
|
|
|
|
|
data: {us_order : order, order_key: "created_on", user_status:user_status, research_condition:research_condition, research_contents:research_contents}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// 按最后登录时间排序
|
|
|
|
// 按最后登录时间排序
|
|
|
|
$("#user_last_order").on("click", function(){
|
|
|
|
$("#user_last_order").on("click", function(){
|
|
|
@ -83,15 +77,9 @@
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
var order = "desc"
|
|
|
|
var order = "desc"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var user_status = $("input[name='user_status']").val();
|
|
|
|
$("input[name='us_order']").val(order);
|
|
|
|
var research_condition = $("input[name='research_condition']").val();
|
|
|
|
$("input[name='order_key']").val("last_login_on");
|
|
|
|
var research_contents = $("input[name='research_contents']").val();
|
|
|
|
$("#managements_users_search").submit();
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
url: "<%= users_managements_path %>",
|
|
|
|
|
|
|
|
type: "post",
|
|
|
|
|
|
|
|
dataType: "script",
|
|
|
|
|
|
|
|
data: {us_order : order, order_key: "last_login_on", user_status:user_status, research_condition:research_condition, research_contents:research_contents}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// 按经验值排序
|
|
|
|
// 按经验值排序
|
|
|
|
$("#user_experience_order").on("click", function(){
|
|
|
|
$("#user_experience_order").on("click", function(){
|
|
|
@ -101,16 +89,10 @@
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
var order = "desc"
|
|
|
|
var order = "desc"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var user_status = $("input[name='user_status']").val();
|
|
|
|
$("input[name='us_order']").val(order);
|
|
|
|
var research_condition = $("input[name='research_condition']").val();
|
|
|
|
$("input[name='order_key']").val("experience");
|
|
|
|
var research_contents = $("input[name='research_contents']").val();
|
|
|
|
$("#managements_users_search").submit();
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
url: "<%= users_managements_path %>",
|
|
|
|
|
|
|
|
type: "post",
|
|
|
|
|
|
|
|
dataType: "script",
|
|
|
|
|
|
|
|
data: {us_order : order, order_key: "experience", user_status:user_status, research_condition:research_condition, research_contents:research_contents}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 按金币排序
|
|
|
|
// 按金币排序
|
|
|
|
$("#user_grade_order").on("click", function(){
|
|
|
|
$("#user_grade_order").on("click", function(){
|
|
|
@ -120,14 +102,8 @@
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
var order = "desc"
|
|
|
|
var order = "desc"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var user_status = $("input[name='user_status']").val();
|
|
|
|
$("input[name='us_order']").val(order);
|
|
|
|
var research_condition = $("input[name='research_condition']").val();
|
|
|
|
$("input[name='order_key']").val("grade");
|
|
|
|
var research_contents = $("input[name='research_contents']").val();
|
|
|
|
$("#managements_users_search").submit();
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
url: "<%= users_managements_path %>",
|
|
|
|
|
|
|
|
type: "post",
|
|
|
|
|
|
|
|
dataType: "script",
|
|
|
|
|
|
|
|
data: {us_order : order, order_key: "grade", user_status:user_status, research_condition:research_condition, research_contents:research_contents}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</script>
|