|
|
@@ -29,7 +29,7 @@
|
|
|
<div style="float:right;margin-right:30px;">
|
|
|
<button class="btn btn-primary" type="button" id="add_btn"><i class="icon icon-plus-sign"></i> 增加稽查记录</button>
|
|
|
|
|
|
- <button class="btn btn-info3" type="button" style="margin-left:30px;" onclick="exportThird()" > 导出Excel</button>
|
|
|
+ <button class="btn btn-info3" type="button" style="margin-left:30px;" onclick="exportThird()"> 导出Excel</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -148,17 +148,31 @@
|
|
|
init();
|
|
|
});
|
|
|
|
|
|
- function exportThird(){
|
|
|
- var param = '';
|
|
|
- var month_date = $("#month_date").val();
|
|
|
- var first = $("#first").val();
|
|
|
- var second = $("#second").val();
|
|
|
- if( month_date != '' ){
|
|
|
- param = "&check_time_name="+month_date ;
|
|
|
+ function exportThird() {
|
|
|
+ var param = '';
|
|
|
+ var month_date = $("#month_date").val();
|
|
|
+ var first = $("#first").val();
|
|
|
+ var second = $("#second").val();
|
|
|
+ if (month_date != '') {
|
|
|
+ param = "&check_time_name=" + month_date;
|
|
|
}
|
|
|
- if( second != '' ){
|
|
|
- param += "&dept_id="+ second ;
|
|
|
+ if (second != '') {
|
|
|
+ param += "&dept_id=" + second;
|
|
|
}
|
|
|
window.open(getserveraddr() + "/file/other/check/excel?check_type=5" + param);
|
|
|
}
|
|
|
+
|
|
|
+ function exportThirds() {
|
|
|
+ var param = '';
|
|
|
+ var month_date = $("#month_date").val();
|
|
|
+ var first = $("#first").val();
|
|
|
+ var second = $("#second").val();
|
|
|
+ if (month_date != '') {
|
|
|
+ param = "&check_time_name=" + month_date;
|
|
|
+ }
|
|
|
+ if (second != '') {
|
|
|
+ param += "&dept_id=" + second;
|
|
|
+ }
|
|
|
+ window.open(getserveraddr() + "/file/other/check/static/excel?check_type=5" + param);
|
|
|
+ }
|
|
|
</script>
|