流量统计导出图表修改文件名称,加后缀时间,导出csv的增加标题日期
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user