From 0cf19aeab9682ff5735fa42dfa3c6b0e6bfddaa4 Mon Sep 17 00:00:00 2001 From: wangwei Date: Tue, 23 Apr 2019 16:45:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E6=94=B9=E4=B8=BApost=E4=BC=A0=E5=8F=82;=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=8B=A6=E6=88=AA=E4=BF=AE=E5=A4=8D=E7=AD=96=E7=95=A5?= =?UTF-8?q?=E5=BF=85=E9=80=89=E5=B1=9E=E6=80=A7=E4=B8=BA=E7=A9=BA=E4=B8=8D?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/tags/sys/delRow.tag | 13 +++++------- .../views/cfg/intercept/strateagy/form.jsp | 14 ++++++------- .../webapp/static/pages/scripts/pageLogs.js | 20 ++++++++----------- 3 files changed, 20 insertions(+), 27 deletions(-) diff --git a/src/main/webapp/WEB-INF/tags/sys/delRow.tag b/src/main/webapp/WEB-INF/tags/sys/delRow.tag index 8fcfb4c06..cebd58702 100644 --- a/src/main/webapp/WEB-INF/tags/sys/delRow.tag +++ b/src/main/webapp/WEB-INF/tags/sys/delRow.tag @@ -464,7 +464,6 @@ function doAll(checkboxes,url){ },{buttonsFocus:1}); top.$('.jbox-body .jbox-icon').css('top','55px'); } - alert("333"); //除取消审核之外的业务 }else{ @@ -477,6 +476,7 @@ function doAll(checkboxes,url){ exportXmlRequest(url); }else{ window.location = url+"?ids="+ids+"&compileIds="+compileIds; + exportXmlRequest(url); } if(url.indexOf("?isAudit") > 1){ loading(''); @@ -564,14 +564,12 @@ function exportData(url,maxRow,searchUrl,exType){ } if(column.toString()!="" && column.toString() ==""){ top.$.jBox.tip("", ""); - alert("第一个return"); return; } if(column.toString()!=""){ url+="&columns="+column.toString(); }else{ top.$.jBox.tip("", ""); - alert("第二个return"); return; } if(hColumn.toString()!=""){ @@ -608,10 +606,9 @@ function exportData(url,maxRow,searchUrl,exType){ } function exportXmlRequest(url){ loading('onloading'); - url+="&"+$('#searchForm').serialize(); var xmlResquest = new XMLHttpRequest(); xmlResquest.open("POST", url, true); - xmlResquest.setRequestHeader("Content-type", "application/json"); + xmlResquest.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlResquest.responseType = "blob"; xmlResquest.onload = function (oEvent) { var contDisp = xmlResquest.getResponseHeader("content-disposition"); @@ -630,7 +627,7 @@ function exportXmlRequest(url){ if (xmlResquest.readyState==4) { top.$.jBox.closeTip(); } - } - xmlResquest.send(); + } + xmlResquest.send($('#searchForm').serialize()); } - \ No newline at end of file + diff --git a/src/main/webapp/WEB-INF/views/cfg/intercept/strateagy/form.jsp b/src/main/webapp/WEB-INF/views/cfg/intercept/strateagy/form.jsp index 82e0f8752..0124d844c 100644 --- a/src/main/webapp/WEB-INF/views/cfg/intercept/strateagy/form.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/intercept/strateagy/form.jsp @@ -274,9 +274,9 @@ function privateFileValidate(){ - -
- +
+ +
@@ -302,9 +302,9 @@ function privateFileValidate(){
-
+
+
-
@@ -329,9 +329,9 @@ function privateFileValidate(){
   -
+
+
-
diff --git a/src/main/webapp/static/pages/scripts/pageLogs.js b/src/main/webapp/static/pages/scripts/pageLogs.js index d146d4e49..bc5829184 100644 --- a/src/main/webapp/static/pages/scripts/pageLogs.js +++ b/src/main/webapp/static/pages/scripts/pageLogs.js @@ -117,27 +117,24 @@ Date.prototype.Format = function (fmt) { function aJaxImportPost(url, params) { top.$.jBox.tip("onloading",'loading',{opacity:0.5,persistent:true}); // 创建form元素 - var temp_form = document.createElement("form"); - temp_form.id = "temp_form"; + var temp_form = document.createElement("form"); // 设置form属性 + temp_form .id = 'temp_form'; temp_form .action = url; temp_form .target = "_self"; temp_form .method = "post"; - temp_form .style.display = "none"; + temp_form .style.display = "none"; // 处理需要传递的参数 for (var x in params) { var opt = document.createElement("textarea"); opt.name = x; opt.value = params[x]; temp_form .appendChild(opt); - } - document.body.appendChild(temp_form); - url=url+"?"; - url+="&"+$('#temp_form').serialize(); + } + document.body.appendChild(temp_form); var xmlResquest = new XMLHttpRequest(); xmlResquest.open("POST", url, true); - xmlResquest.setRequestHeader("Content-type", "application/json"); - xmlResquest.setRequestHeader("Content-Disposition","attachment"); + xmlResquest.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmlResquest.responseType = "blob"; xmlResquest.onload = function (oEvent) { var contDisp = xmlResquest.getResponseHeader("content-disposition") @@ -150,13 +147,12 @@ function aJaxImportPost(url, params) { elink.href = URL.createObjectURL(blob); document.body.appendChild(elink); elink.click(); - document.body.removeChild(elink); - + document.body.removeChild(elink); }; xmlResquest.onreadystatechange = function() { if (xmlResquest.readyState==4) { top.$.jBox.closeTip(); } }; - xmlResquest.send(); + xmlResquest.send($("#temp_form").serialize()); }