diff --git a/src/main/webapp/WEB-INF/views/report/list.jsp b/src/main/webapp/WEB-INF/views/report/list.jsp index 35d94be39..309f35684 100644 --- a/src/main/webapp/WEB-INF/views/report/list.jsp +++ b/src/main/webapp/WEB-INF/views/report/list.jsp @@ -69,15 +69,19 @@ $(document).ready(function() { } }); //ajaxServiceLogTotal(); - $("#export-btn").click(function(){ + $(".export-btn").click(function(){ + var suffix = $(this).data("export-type"); + totaltb(1,-1); + getExportHead(); var te = $(".in table").tableExport({ headings:true, footers:true, - formats:["xlsx"], - fileName: getXlsxFileName(), + formats:[suffix], + fileName: getFileName(), bootstrap:false }); + $(".exportFirst").remove(); $("#myexport").click(); $("caption").remove(); //totaltb(pato,size); @@ -93,8 +97,20 @@ $(document).ready(function() { var li=document.getElementById("liwhite").offsetWidth; var lipx=Number(li/6); $(".lireport").css({'width':lipx+'px','text-overflow':'ellipsis','overflow':'hidden'}); + }); - function getXlsxFileName() { + function getExportHead(){ + // 报表导出 文件增加表头 + var timeType = $("#reportType").find("option:selected").text(); + var time = $("#intype").val(); + var tabName = $("#liwhite").find("li[class='active'] a").attr("title"); + + var addTr = "