提交 628b7573 authored 作者: jinrongbin's avatar jinrongbin

多个文件下载功能修改

上级 596fee1b
......@@ -78,7 +78,7 @@
<template #extra> <a-button type="primary" @click.prevent="handleClick($event, 'S3')">基本信息</a-button> </template>
</a-collapse-panel>
<a-collapse-panel key="3" :header="getName()" v-if="data?.S4 || data?.S5 || data?.S6">
<a-collapse-panel key="3" :header="getName()" v-if="data?.S4 || data?.S5 || data?.S10">
<a-row>
<a-col :span="24" class="border">
<a-row>
......@@ -232,8 +232,15 @@
emit('handClick', v, data);
}
function down(url, name) {
let fileExtension = url.split('.').pop();
downloadFile('/sys/common/static' + url, `${name}.${fileExtension}`);
let arr = url.split(',');
console.log(url,arr, 'url');
if (arr.length > 0) {
arr.forEach((v) => {
let fileExtension = v.split('.').pop();
downloadFile('/sys/common/static' + v, `${name}.${fileExtension}`);
});
return;
}
}
</script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论