流量统计导出图表修改文件名称,加后缀时间,导出csv的增加标题日期

This commit is contained in:
zhanghongqing
2018-12-27 11:20:55 +08:00
parent cab074abea
commit 73c3b9db1f
10 changed files with 378 additions and 23 deletions

View File

@@ -169,6 +169,7 @@ $(".export-btn").click(function(){
getPageData(1,999999);// 设置导出页条数
var start=$("#beginDate").val();
var end=$("#endDate").val();
var nowDate=new Date();
var htmlTitle="";
htmlTitle+="<tr class='tr-title'>";
htmlTitle+= "<th class='tc' colspan='1'>"+"<spring:message code='service'/>"+"</th>";
@@ -179,7 +180,7 @@ $(".export-btn").click(function(){
headings:true,
footers:true,
formats:[dataType],
fileName:"service",
fileName:"service"+nowDate.getFullYear()+(nowDate.getMonth()+1)+nowDate.getDate(),
bootstrap:false
});
$("#myexport").click();