解决流量统计无数据导出后分页显示的问题

This commit is contained in:
zhanghongqing
2018-12-27 14:02:34 +08:00
parent 73c3b9db1f
commit d8614b8315
4 changed files with 12 additions and 8 deletions

View File

@@ -209,6 +209,7 @@ $(".export-btn").click(function(){
$("caption").remove();
$(".tr-title").remove();
getPageData(1,10);
pageJuan(10);//初始化分页
});
/**
* 获取本页数据
@@ -239,7 +240,7 @@ function getPageData(currentPage,pageNumber){
function htmlData(fileDataS){
$("#tableData").html("");
if(fileDataS == null){
if(fileDataS == null||(fileDataS!=null&&fileDataS.length<1)){
$(".none-data").show();
$('.M-box').hide();
}else{

View File

@@ -187,6 +187,7 @@ $(".export-btn").click(function(){
$("caption").remove();
$(".tr-title").remove();
getPageData(1,10);
pageJuan(10);//初始化分页
});
/**
* 获取本页数据
@@ -216,7 +217,7 @@ function getPageData(currentPage,pageNumber){
// 处理接口数据
function htmlData(fileDataS){
$("#tableData").html("");
if(fileDataS == null){
if(fileDataS == null||(fileDataS!=null&&fileDataS.length<1)){
$(".none-data").show();
$('.M-box').hide();
}else{

View File

@@ -203,6 +203,7 @@ $(".export-btn").click(function(){
$("caption").remove();
$(".tr-title").remove();
getPageData(1,10);
pageJuan(10);//初始化分页
});
/**
* 获取本页数据
@@ -232,7 +233,7 @@ function getPageData(currentPage,pageNumber){
// 处理接口数据
function htmlData(fileDataS){
$("#tableData").html("");
if(fileDataS == null){
if(fileDataS == null||(fileDataS!=null&&fileDataS.length<1)){
$(".none-data").show();
$('.M-box').hide();
}else{

View File

@@ -271,6 +271,7 @@
$("caption").remove();
$(".tr-title").remove();
getPageData(1,10);
pageJuan(10);//初始化分页
});
$("#print-btn").click(function() {
window.print();