【管理员页面】排序时,未带搜索条件进行排序

dev_haigong
cxt 6 years ago
parent 999aba69f4
commit 58dd8d207d

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

@ -44,6 +44,9 @@
<div id="search_school_result_list" style="width: 330px;line-height: 1.5;min-height:20px; max-height: 200px; height: auto !important;display:none;background: white;overflow: scroll;border: solid 1px #cccccc; overflow-x: hidden; overflow-y: auto;">
</div>
<input type="hidden" name="us_order" value="">
<input type="hidden" name="order_key" value="">
<a href="javascript:void(0);" class="fl task-btn task-btn-orange ml5 mt5" onclick="$('#managements_users_search').submit();">搜索</a>
<a href="javascript:void(0);" class="fl task-btn ml5 mt5" id="clear_contents">清除</a>

Loading…
Cancel
Save