zhouna 3 rokov pred
rodič
commit
f2d93d26a9

+ 3 - 1
src/js/dataAnalysis/improveStatistics.js

@@ -187,7 +187,9 @@ function getTabData(activePage){
             const totalPage = data.pages;
             const totalNum = data.total;
             renderTab(detail,detail.hospitalId,activePage);
-            renderPagination(totalPage,Number(activePage),totalNum)
+            if(totalNum>0){
+			  renderPagination(totalPage,Number(activePage),totalNum)
+			}
         }else{
             $.alerModal({"message":res.data.msg,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
         }

+ 3 - 1
src/js/dataAnalysis/statisticsDetail.js

@@ -214,7 +214,9 @@ function getTabData(activePage){
             const totalNum = data.total;
             currentPage = activePage
             renderTab(tabList,data.hospitalId);
-            renderPagination(totalPage,Number(activePage),totalNum)
+		  if(totalNum>0){
+			renderPagination(totalPage,Number(activePage),totalNum)
+		  }
         }else{
             $.alerModal({"message":res.data.msg,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
         }

+ 1 - 4
src/js/dept/improveStatisticsDept.js

@@ -193,11 +193,8 @@ function getTabData(activePage){
 	  const totalPage = data.pages;
 	  const totalNum = data.total;
 	  renderTab(detail,detail.hospitalId,activePage);
-	  renderPagination(totalPage,Number(activePage),totalNum)
-	  if(totalPage > 1){
+	  if(totalNum>0){
 		renderPagination(totalPage,Number(activePage),totalNum)
-	  } else{
-		$('.pagination').html("")
 	  }
 	}else{
 	  $.alerModal({"message":res.data.msg,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});

+ 3 - 1
src/js/dept/statisticsDetailDept.js

@@ -203,7 +203,9 @@ function getTabData(activePage){
 	  const totalNum = data.total;
 	  currentPage = activePage
 	  renderTab(tabList,data.hospitalId);
-	  renderPagination(totalPage,Number(activePage),totalNum)
+	  if(totalNum>0){
+		renderPagination(totalPage,Number(activePage),totalNum)
+	  }
 	}else{
 	  $.alerModal({"message":res.data.msg,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
 	}

+ 2 - 5
src/js/dept/useStatisticsDept.js

@@ -159,12 +159,9 @@ function getTabData(activePage){
 	  const totalPage = data.pages;
 	  const totalNum = data.total;
 	  renderTab(detail,detail.hospitalId,activePage);
-	  renderPagination(totalPage,Number(activePage),totalNum)
-	  /*if(totalPage > 1){
+	  if(totalNum>0){
 		renderPagination(totalPage,Number(activePage),totalNum)
-	  } else{
-		$('.pagination').html("")
-	  }*/
+	  }
 	}else{
 	  $.alerModal({"message":res.data.msg,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
 	}