From 258bedf0aa101f04ab70dfb6c6e2f5549d2d1002 Mon Sep 17 00:00:00 2001 From: zouyx <1798599149@qq.com> Date: Wed, 12 Feb 2025 15:13:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E7=9D=A3=E7=AB=AF-=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E4=BF=AE=E6=94=B9-=E9=83=A8=E9=97=A8+=E4=BC=81=E4=B8=9A+?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E8=AE=A1=E5=88=92+=E6=89=A7=E6=B3=95?= =?UTF-8?q?=E6=A3=80=E6=9F=A5+=E9=A2=84=E8=AD=A6+=E6=89=A7=E6=B3=95?= =?UTF-8?q?=E6=8A=95=E8=AF=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../code/complaintStatic/complaintStatic.html | 60 ++++++++++++++++++- .../code/registration/registration.html | 20 ++++++- .../code/registration/staticRegistration.html | 36 +++++++++-- .../code/statistical/staticProgram.html | 18 +++++- .../statisticsEnterprise.html | 21 ++++++- .../statisticsWarning/statisticsWarning.html | 18 +++++- .../controller/ComplaintStaticController.java | 46 +++++++++----- .../code/controller/DeptStaticController.java | 2 + ...nforcementInspectionProgramController.java | 13 ++-- .../EnforcementRegistrationController.java | 25 +++++--- .../StatisticsEnterpriseController.java | 11 +++- .../StatisticsWarningController.java | 13 ++-- .../impl/EnforcementCheckStatisticsImpl.java | 8 ++- .../EnforcementRegistrationServiceImpl.java | 16 ++++- .../impl/StatisticsEnterpriseServiceImpl.java | 3 + 15 files changed, 255 insertions(+), 55 deletions(-) diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/complaintStatic/complaintStatic.html b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/complaintStatic/complaintStatic.html index a40e0e6a..8a06b1cf 100644 --- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/complaintStatic/complaintStatic.html +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/complaintStatic/complaintStatic.html @@ -796,7 +796,7 @@ var currentId=$('form').eq(0).attr('id'); var params = $.common.formToJSON(currentId); delete params.dateSearch; - $.ajax({ +/* $.ajax({ type: "POST", data: JSON.stringify(params), contentType: 'application/json', @@ -813,7 +813,21 @@ link.click(); document.body.removeChild(link) } - }) + })*/ + console.log(params) + let paramsList=[] + for(var key in params){ + if (params.hasOwnProperty(key)) { + var value = params[key]; + // 检查值是否为空 + if (value!== null && value!== undefined && value!== '') { + paramsList.push(key + '=' + value); + } + } + } + console.log(paramsList) + console.log(paramsList.join("&")) + window.location.href = prefix +"/export1?"+paramsList.join("&") } function downloadC2(){ var currentId=$('form').eq(1).attr('id'); @@ -838,6 +852,20 @@ document.body.removeChild(link) } }) + console.log(params) + let paramsList=[] + for(var key in params){ + if (params.hasOwnProperty(key)) { + var value = params[key]; + // 检查值是否为空 + if (value!== null && value!== undefined && value!== '') { + paramsList.push(key + '=' + value); + } + } + } + console.log(paramsList) + console.log(paramsList.join("&")) + window.location.href = prefix +"/export2?"+paramsList.join("&") }else if(document.getElementById("qy").value==""){ $.ajax({ type: "POST", @@ -857,6 +885,20 @@ document.body.removeChild(link) } }) + console.log(params) + let paramsList=[] + for(var key in params){ + if (params.hasOwnProperty(key)) { + var value = params[key]; + // 检查值是否为空 + if (value!== null && value!== undefined && value!== '') { + paramsList.push(key + '=' + value); + } + } + } + console.log(paramsList) + console.log(paramsList.join("&")) + window.location.href = prefix +"/export3?"+paramsList.join("&") }else{ $.ajax({ type: "POST", @@ -876,6 +918,20 @@ document.body.removeChild(link) } }) + console.log(params) + let paramsList=[] + for(var key in params){ + if (params.hasOwnProperty(key)) { + var value = params[key]; + // 检查值是否为空 + if (value!== null && value!== undefined && value!== '') { + paramsList.push(key + '=' + value); + } + } + } + console.log(paramsList) + console.log(paramsList.join("&")) + window.location.href = prefix +"/export4?"+paramsList.join("&") } } diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/registration/registration.html b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/registration/registration.html index 481afca9..960f8144 100644 --- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/registration/registration.html +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/registration/registration.html @@ -77,7 +77,7 @@
扫码原因:
+未扫码原因: