提交 33e17fb1 authored 作者: 刘旭's avatar 刘旭

修改导出文件命名

上级 32e7fbc4
...@@ -79,7 +79,7 @@ const exportExcelAll = () => { ...@@ -79,7 +79,7 @@ const exportExcelAll = () => {
.then(data => { .then(data => {
const blobUrl = window.URL.createObjectURL(data); const blobUrl = window.URL.createObjectURL(data);
const a = document.createElement('a'); const a = document.createElement('a');
a.download = '全部.xlsx'; a.download = listQuery.value.docType + '-ALL.xlsx';
a.href = blobUrl; a.href = blobUrl;
a.click(); a.click();
}); });
...@@ -101,7 +101,7 @@ const exportExcelList = () => { ...@@ -101,7 +101,7 @@ const exportExcelList = () => {
.then(data => { .then(data => {
const blobUrl = window.URL.createObjectURL(data); const blobUrl = window.URL.createObjectURL(data);
const a = document.createElement('a'); const a = document.createElement('a');
a.download = '当前页.xlsx'; a.download = listQuery.value.docType + '.xlsx';
a.href = blobUrl; a.href = blobUrl;
a.click(); a.click();
}); });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论