Sfoglia il codice sorgente

预览时不提示需加载多少条数据

sunyj 8 anni fa
parent
commit
d1ec357b51
1 ha cambiato i file con 1 aggiunte e 22 eliminazioni
  1. 1 22
      src/main/webapp/resources/js/preview/app.js

+ 1 - 22
src/main/webapp/resources/js/preview/app.js

@@ -30,7 +30,7 @@ var nextRenderingPage;
 
 
 document.title = getParameter("reportName");
 document.title = getParameter("reportName");
 getWindowWidth();
 getWindowWidth();
-count();
+loadData();
 
 
 // 缩小,最小不小于原大小的0.2/1.2倍
 // 缩小,最小不小于原大小的0.2/1.2倍
 $("#zoomOut").click(function() {
 $("#zoomOut").click(function() {
@@ -169,27 +169,6 @@ function getWindowWidth() {
 	}
 	}
 }
 }
 
 
-/**
- * 发送请求,获取当前条件下的结果数目
- */
-function count() {
-	spinner = showLoading(spinner, spinnerContainer);
-	var countUrl = "print/count" + window.location.search;
-	$.ajax({
-		type : "get",
-		async : false,
-		url : countUrl,
-		success : function(count) {
-			alert(spinnerContainer, "需载入" + count + "条数据", 1000);
-			spinner = hideLoading(spinner);
-			loadData();
-		},
-		error : function(XMLHttpRequest) {
-			showError(XMLHttpRequest);
-		}
-	});
-}
-
 /**
 /**
  * 发送请求,服务器端进行填充报表、生成pdf文件等操作
  * 发送请求,服务器端进行填充报表、生成pdf文件等操作
  */
  */