Przeglądaj źródła

文件上传缓慢修复

user5 4 lat temu
rodzic
commit
cdaaa858be

+ 7 - 1
src/main/webapp/webpage/modules/projectcontentinfo/projectReportRecordModifyApply.jsp

@@ -817,7 +817,13 @@
 			}
 		});
 		if(validateForm.form()){
-			$($document.getElementById(inputForm)).ajaxSubmit({
+			var action = $document.getElementById(inputForm).action;
+			var handleInfo = $($document.getElementById(inputForm)).serialize();
+			$.ajax({
+				type : "POST",
+				url : action,
+				data : handleInfo,
+				//请求成功
 				success:function(data) {
 					var d = data;
 					//输出提示信息

+ 7 - 1
src/main/webapp/webpage/modules/ruralprojectrecords/cost/projectReportRecord/projectReportRecordForm.jsp

@@ -894,7 +894,13 @@
 			}
 		});
 		if(validateForm.form()){
-			$($document.getElementById(inputForm)).ajaxSubmit({
+			var action = $document.getElementById(inputForm).action;
+			var handleInfo = $($document.getElementById(inputForm)).serialize();
+			$.ajax({
+				type : "POST",
+				url : action,
+				data : handleInfo,
+				//请求成功
 				success:function(data) {
 					var d = data;
 					//输出提示信息

+ 7 - 1
src/main/webapp/webpage/modules/ruralprojectrecords/cost/projectReportRecord/projectReportRecordModify.jsp

@@ -937,7 +937,13 @@
 			}
 		});
 		if(validateForm.form()){
-			$($document.getElementById(inputForm)).ajaxSubmit({
+			var action = $document.getElementById(inputForm).action;
+			var handleInfo = $($document.getElementById(inputForm)).serialize();
+			$.ajax({
+				type : "POST",
+				url : action,
+				data : handleInfo,
+				//请求成功
 				success:function(data) {
 					var d = data;
 					//输出提示信息

+ 7 - 4
src/main/webapp/webpage/modules/ruralprojectrecords/cost/projectcontentinfo/new/reportForm.jsp

@@ -1769,16 +1769,19 @@
 			}
 		});
 		if(validateForm.form()){
-			var t1=new Date().getTime();
-			$($document.getElementById(inputForm)).ajaxSubmit({
+			var action = $document.getElementById(inputForm).action;
+			var handleInfo = $($document.getElementById(inputForm)).serialize();
+			$.ajax({
+				type : "POST",
+				url : action,
+				data : handleInfo,
+				//请求成功
 				success:function(data) {
 					var d = data;
 					//输出提示信息
 					if(d.str.length>0){
 						parent.layer.msg(d.str,{icon:1});
 					}
-					var t2=new Date().getTime();
-					console.log(t2-t1);
 					//刷新当前模块
 					var reviewFee = $("#reviewFee").val();
 					$("#"+tableId).load(location.href+"&reviewFee="+reviewFee + " #"+tableId);

+ 8 - 5
src/main/webapp/webpage/modules/ruralprojectrecords/cost/projectcontentinfo/new/reportModify.jsp

@@ -1609,17 +1609,20 @@
 				}
 			}
 		});
-		if(validateForm.form()){
-			var t1=new Date().getTime();
-			$($document.getElementById(inputForm)).ajaxSubmit({
+		if(validateForm.form()) {
+			var action = $document.getElementById(inputForm).action;
+			var handleInfo = $($document.getElementById(inputForm)).serialize();
+			$.ajax({
+				type: "POST",
+				url: action,
+				data: handleInfo,
+				//请求成功
 				success:function(data) {
 					var d = data;
 					//输出提示信息
 					if(d.str.length>0){
 						parent.layer.msg(d.str,{icon:1});
 					}
-					var t2=new Date().getTime();
-					console.log(t2-t1);
 					$("#"+tableId).load(location.href + " #"+tableId);
 					//关闭当前页
 					top.layer.close(index)

+ 7 - 1
src/main/webapp/webpage/modules/ruralprojectrecords/projectAccessoryForm.jsp

@@ -909,7 +909,13 @@
 			}
 		});
 		if(validateForm.form()){
-			$($document.getElementById(inputForm)).ajaxSubmit({
+			var action = $document.getElementById(inputForm).action;
+			var handleInfo = $($document.getElementById(inputForm)).serialize();
+			$.ajax({
+				type : "POST",
+				url : action,
+				data : handleInfo,
+				//请求成功
 				success:function(data) {
 					var d = data;
 					//输出提示信息

+ 7 - 1
src/main/webapp/webpage/modules/ruralprojectrecords/projectReportRecord/projectReportRecordForm.jsp

@@ -884,7 +884,13 @@
 			}
 		});
 		if(validateForm.form()){
-			$($document.getElementById(inputForm)).ajaxSubmit({
+			var action = $document.getElementById(inputForm).action;
+			var handleInfo = $($document.getElementById(inputForm)).serialize();
+			$.ajax({
+				type : "POST",
+				url : action,
+				data : handleInfo,
+				//请求成功
 				success:function(data) {
 					var d = data;
 					//输出提示信息

+ 7 - 1
src/main/webapp/webpage/modules/ruralprojectrecords/projectReportRecord/projectReportRecordModify.jsp

@@ -926,7 +926,13 @@
 			}
 		});
 		if(validateForm.form()){
-			$($document.getElementById(inputForm)).ajaxSubmit({
+			var action = $document.getElementById(inputForm).action;
+			var handleInfo = $($document.getElementById(inputForm)).serialize();
+			$.ajax({
+				type : "POST",
+				url : action,
+				data : handleInfo,
+				//请求成功
 				success:function(data) {
 					var d = data;
 					//输出提示信息

+ 7 - 1
src/main/webapp/webpage/modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/new/projectRecordsMessageModify.jsp

@@ -1349,7 +1349,13 @@
             }
         });
         if(validateForm.form()){
-            $($document.getElementById(inputForm)).ajaxSubmit({
+            var action = $document.getElementById(inputForm).action;
+            var handleInfo = $($document.getElementById(inputForm)).serialize();
+            $.ajax({
+                type: "POST",
+                url: action,
+                data: handleInfo,
+                //请求成功
                 success:function(data) {
                     var d = data;
                     //输出提示信息

+ 7 - 1
src/main/webapp/webpage/modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/new/reportForm.jsp

@@ -1671,7 +1671,13 @@
 			}
 		});
 		if(validateForm.form()){
-			$($document.getElementById(inputForm)).ajaxSubmit({
+			var action = $document.getElementById(inputForm).action;
+			var handleInfo = $($document.getElementById(inputForm)).serialize();
+			$.ajax({
+				type: "POST",
+				url: action,
+				data: handleInfo,
+				//请求成功
 				success:function(data) {
 					var d = data;
 					//输出提示信息