|
|
@ -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 = "申报表单"; // 重命名文件
|
|
|
|
}
|
|
|
|
}
|
|
|
|