解决流量统计无数据导出后分页显示的问题
This commit is contained in:
@@ -208,7 +208,8 @@ $(".export-btn").click(function(){
|
|||||||
$("#myexport").click();
|
$("#myexport").click();
|
||||||
$("caption").remove();
|
$("caption").remove();
|
||||||
$(".tr-title").remove();
|
$(".tr-title").remove();
|
||||||
getPageData(1,10);
|
getPageData(1,10);
|
||||||
|
pageJuan(10);//初始化分页
|
||||||
});
|
});
|
||||||
/**
|
/**
|
||||||
* 获取本页数据
|
* 获取本页数据
|
||||||
@@ -239,7 +240,7 @@ function getPageData(currentPage,pageNumber){
|
|||||||
function htmlData(fileDataS){
|
function htmlData(fileDataS){
|
||||||
|
|
||||||
$("#tableData").html("");
|
$("#tableData").html("");
|
||||||
if(fileDataS == null){
|
if(fileDataS == null||(fileDataS!=null&&fileDataS.length<1)){
|
||||||
$(".none-data").show();
|
$(".none-data").show();
|
||||||
$('.M-box').hide();
|
$('.M-box').hide();
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -186,7 +186,8 @@ $(".export-btn").click(function(){
|
|||||||
$("#myexport").click();
|
$("#myexport").click();
|
||||||
$("caption").remove();
|
$("caption").remove();
|
||||||
$(".tr-title").remove();
|
$(".tr-title").remove();
|
||||||
getPageData(1,10);
|
getPageData(1,10);
|
||||||
|
pageJuan(10);//初始化分页
|
||||||
});
|
});
|
||||||
/**
|
/**
|
||||||
* 获取本页数据
|
* 获取本页数据
|
||||||
@@ -216,7 +217,7 @@ function getPageData(currentPage,pageNumber){
|
|||||||
// 处理接口数据
|
// 处理接口数据
|
||||||
function htmlData(fileDataS){
|
function htmlData(fileDataS){
|
||||||
$("#tableData").html("");
|
$("#tableData").html("");
|
||||||
if(fileDataS == null){
|
if(fileDataS == null||(fileDataS!=null&&fileDataS.length<1)){
|
||||||
$(".none-data").show();
|
$(".none-data").show();
|
||||||
$('.M-box').hide();
|
$('.M-box').hide();
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -202,7 +202,8 @@ $(".export-btn").click(function(){
|
|||||||
$("#myexport").click();
|
$("#myexport").click();
|
||||||
$("caption").remove();
|
$("caption").remove();
|
||||||
$(".tr-title").remove();
|
$(".tr-title").remove();
|
||||||
getPageData(1,10);
|
getPageData(1,10);
|
||||||
|
pageJuan(10);//初始化分页
|
||||||
});
|
});
|
||||||
/**
|
/**
|
||||||
* 获取本页数据
|
* 获取本页数据
|
||||||
@@ -232,12 +233,12 @@ function getPageData(currentPage,pageNumber){
|
|||||||
// 处理接口数据
|
// 处理接口数据
|
||||||
function htmlData(fileDataS){
|
function htmlData(fileDataS){
|
||||||
$("#tableData").html("");
|
$("#tableData").html("");
|
||||||
if(fileDataS == null){
|
if(fileDataS == null||(fileDataS!=null&&fileDataS.length<1)){
|
||||||
$(".none-data").show();
|
$(".none-data").show();
|
||||||
$('.M-box').hide();
|
$('.M-box').hide();
|
||||||
}else{
|
}else{
|
||||||
$('.none-data').hide();
|
$('.none-data').hide();
|
||||||
$('.M-box').show();
|
$('.M-box').show();
|
||||||
var start=$("#beginDate").val();
|
var start=$("#beginDate").val();
|
||||||
var end=$("#endDate").val();
|
var end=$("#endDate").val();
|
||||||
$.each(fileDataS,function (index,data){
|
$.each(fileDataS,function (index,data){
|
||||||
|
|||||||
@@ -270,7 +270,8 @@
|
|||||||
$("#myexport").click();
|
$("#myexport").click();
|
||||||
$("caption").remove();
|
$("caption").remove();
|
||||||
$(".tr-title").remove();
|
$(".tr-title").remove();
|
||||||
getPageData(1, 10);
|
getPageData(1,10);
|
||||||
|
pageJuan(10);//初始化分页
|
||||||
});
|
});
|
||||||
$("#print-btn").click(function() {
|
$("#print-btn").click(function() {
|
||||||
window.print();
|
window.print();
|
||||||
|
|||||||
Reference in New Issue
Block a user