Commit 026cc4a8 authored by agping's avatar agping

导出经纪人

parent e2856a51
...@@ -106,7 +106,10 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp ...@@ -106,7 +106,10 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
$('#search').click(function(pageNo) { $('#search').click(function(pageNo) {
agent.getList(1); agent.getList(1);
}); });
//经纪人列表 导出报表
_doc.on("click", "#export", function() {
agent.maintableExport();
});
$("#reset").click(function() { //重置 $("#reset").click(function() { //重置
document.getElementById("form_search").reset(); document.getElementById("form_search").reset();
}); });
...@@ -1027,6 +1030,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp ...@@ -1027,6 +1030,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
params.store_id = $("#guest_stores").val(); params.store_id = $("#guest_stores").val();
// params.site_id = $("#district_id2_city").val();//站点筛选 // params.site_id = $("#district_id2_city").val();//站点筛选
params.status = $("select[name=agent_status]").val(); params.status = $("select[name=agent_status]").val();
params.id_card = $("#identity_id").val();
$.ajax({ $.ajax({
url: '/index/AgentList', url: '/index/AgentList',
type: 'GET', type: 'GET',
...@@ -1062,6 +1067,10 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp ...@@ -1062,6 +1067,10 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
} }
}); });
}, },
//导出经纪人列表
maintableExport: function(pageNo) {
window.open('/index/AgentList?excel=1' + '&' + 'search=' + $("input[name='search']").val() + '&group_name=' + $("input[name='groupname']").val() + '&district_id=' + $("#district_id2").val() + '&store_id=' + $("#guest_stores").val() + '&status=' + $("select[name=agent_status]").val() + '&id_card=' + $("#identity_id").val());
},
spandelList: function(n) { //删除已经保存的图片都调用 spandelList: function(n) { //删除已经保存的图片都调用
$.ajax({ $.ajax({
'type': 'POST', 'type': 'POST',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment