打包下载名称修改

Lvtianfang
吕天方 3 months ago
parent 7d0b6ad439
commit 89009bb344

@ -1,6 +1,6 @@
{ {
"name": "ruoyi", "name": "ruoyi",
"version": "1.0.202412100904", "version": "1.0.202412100928",
"description": "金鸡湖现代服务业品牌管理系统", "description": "金鸡湖现代服务业品牌管理系统",
"author": "若依", "author": "若依",
"license": "MIT", "license": "MIT",

@ -537,7 +537,7 @@ export default {
let enterpriseName = []; let enterpriseName = [];
this.multipleSelection.map((item)=>{ this.multipleSelection.map((item)=>{
id.push(Number(item.id)) id.push(Number(item.id))
name.push(item.projectName) name.push(item.enterpriseDirectory)
enterpriseName.push(item.enterpriseName) enterpriseName.push(item.enterpriseName)
}) })
exportZip({list:id.join(",")}).then((response) => { exportZip({list:id.join(",")}).then((response) => {
@ -546,7 +546,7 @@ export default {
const link = document.createElement("a"); // a const link = document.createElement("a"); // a
link.href = url; link.href = url;
if(this.multipleSelection.length == 1){ if(this.multipleSelection.length == 1){
link.download = name[0] + enterpriseName[0]; link.download = enterpriseName[0] + '-' + name[0];
} else { } else {
link.download = "申报表单"; // link.download = "申报表单"; //
} }

Loading…
Cancel
Save