From e7031cc3162f539bf8357d1a969eafc5d5b9c707 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Mon, 14 Apr 2025 10:49:00 +0800 Subject: [PATCH] =?UTF-8?q?js=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/js/synthesisQuery/fileDownload.js | 4 ++-- .../static/js/synthesisQuery/proClassifyStatistics.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/static/js/synthesisQuery/fileDownload.js b/src/main/resources/static/js/synthesisQuery/fileDownload.js index 8d16f3d..220540f 100644 --- a/src/main/resources/static/js/synthesisQuery/fileDownload.js +++ b/src/main/resources/static/js/synthesisQuery/fileDownload.js @@ -1,7 +1,7 @@ let proId = decryptCBC(getUrlParam('proId')); let type = decryptCBC(getUrlParam('type')); -let title = decryptCBC(decodeURIComponent(getUrlParam('title'))); -let proName = decryptCBC(decodeURIComponent(getUrlParam('proName'))); +let title = decryptCBC(getUrlParam('title')); +let proName = decryptCBC(getUrlParam('proName')); $('#title').html(proName +" - "+ title); document.addEventListener('DOMContentLoaded', function() { const downloadBtn = document.getElementById('downloadBtn'); diff --git a/src/main/resources/static/js/synthesisQuery/proClassifyStatistics.js b/src/main/resources/static/js/synthesisQuery/proClassifyStatistics.js index 648bcc7..2d5c4c1 100644 --- a/src/main/resources/static/js/synthesisQuery/proClassifyStatistics.js +++ b/src/main/resources/static/js/synthesisQuery/proClassifyStatistics.js @@ -208,5 +208,5 @@ function downloadExcel(){ /**下载原图/水印*/ function downloadFile(obj,type){ let title = type === 1 ? "原图下载" : "水印下载"; - window.open("./fileDownload.html?type="+encryptCBC(type)+"&proId="+encryptCBC(obj.proId) + "&title=" + encryptCBC(encodeURIComponent(title)) + "&proName=" + encryptCBC(encodeURIComponent(obj.proName))); + window.open("./fileDownload.html?type="+encryptCBC(type)+"&proId="+encryptCBC(obj.proId) + "&title=" + encryptCBC(title) + "&proName=" + encryptCBC(obj.proName)); } \ No newline at end of file