js 修改

This commit is contained in:
cwchen 2025-04-14 10:49:00 +08:00
parent 7d12697445
commit e7031cc316
2 changed files with 3 additions and 3 deletions

View File

@ -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');

View File

@ -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));
}