Commit f5cb755b authored by hujun's avatar hujun

Merge branch 'test-v1.9' of https://gitee.com/zwyjjc/tl_estate into test-v1.9

parents a079fd68 15d5a21e
......@@ -26,6 +26,10 @@ define (['doT', 'text!temp/statement_template_tpl.html', 'css!style/home.css','c
$("#search").click(function () {
business.getList(1);
});
$("#export").click(function () {//导出列表
business.exportList();
});
$("#reset").click(function () {//重置
document.getElementById("form_search").reset();
......@@ -329,6 +333,23 @@ define (['doT', 'text!temp/statement_template_tpl.html', 'css!style/home.css','c
}
});
},
exportList: function (pageNo) {
business.pageNo = pageNo;
var create_time = $('#create_time') .val();
var end_time = $('#end_time') .val();
var internal_address = $('#internal_address') .val();
var agent = $('#user_name') .val();
var user_phone = $('#user_phone') .val();
var house_number = $('#internal_num') .val();
window.open('/index/exportExcel?create_time='+create_time+'&end_time='+end_time+'&internal_address='+internal_address+'&name='+agent+'&phone='+user_phone+'&house_number='+house_number);
},
};
return business;
});
\ No newline at end of file
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