From 1a1e0edb0e0a452f26c30ad50c9da597de1c9fe6 Mon Sep 17 00:00:00 2001 From: zouyx <1798599149@qq.com> Date: Mon, 18 Nov 2024 11:56:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../code/registration/staticRegistration.html | 10 ++++- .../code/statistical/staticProgram.html | 32 +-------------- .../controller/ComplaintStaticController.java | 39 +++++++++++++++++++ .../code/controller/DeptStaticController.java | 20 ++++++++++ ...nforcementInspectionProgramController.java | 20 ++++++++++ .../EnforcementRegistrationController.java | 21 +++++++++- .../StatisticsEnterpriseController.java | 20 ++++++++++ .../StatisticsWarningController.java | 20 ++++++++++ .../EnforcementRegistrationServiceImpl.java | 21 +++++++++- .../impl/StatisticsEnterpriseServiceImpl.java | 23 +++++++++++ 10 files changed, 191 insertions(+), 35 deletions(-) diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/registration/staticRegistration.html b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/registration/staticRegistration.html index b7089a71..233a4c27 100644 --- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/registration/staticRegistration.html +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/registration/staticRegistration.html @@ -90,7 +90,7 @@ 搜索 重置 导出 - + 根据自定义时间导出执法监督码使用情况 @@ -458,6 +458,12 @@ params.endTime=now.getFullYear()+"-"+(now.getMonth()+1)+"-"+now.getDate(); } console.log(params); + let beginDate=new Date(params.beginTime); + let endDate=new Date(params.endTime); + console.log(beginDate); + console.log(endDate); + let beginName=beginDate.getFullYear()+"年"+(beginDate.getMonth()+1)+"月"+beginDate.getDate()+"日"; + let endName=endDate.getFullYear()+"年"+(endDate.getMonth()+1)+"月"+endDate.getDate()+"日"; $.ajax({ type: "POST", contentType: 'application/json', @@ -470,7 +476,7 @@ let blob = new Blob([result], {type: 'application/vnd.ms-excel'}); link.style.display = 'none'; link.href = URL.createObjectURL(blob); - link.setAttribute('download', "执法监督码"+params.beginTime+"至"+params.endTime+"使用情况.xls"); + link.setAttribute('download', "执法监督码"+beginName+"至"+endName+"使用情况.xls"); document.body.appendChild(link); link.click(); document.body.removeChild(link) diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/staticProgram.html b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/staticProgram.html index 86609e7c..21deffa3 100644 --- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/staticProgram.html +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/statistical/staticProgram.html @@ -133,38 +133,8 @@ - -