标准/译文申请 问题修改

This commit is contained in:
baoyu
2024-03-29 16:16:03 +08:00
parent d07558025d
commit 2cf46debba
@@ -429,7 +429,7 @@ export default {
exportName (name) { exportName (name) {
const params = { const params = {
...this.StandardApplyForEOPage, ...this.StandardApplyForEOPage,
exportFileName: name, exportFileName: name ? name : '标准及译文获取申请',
ids: this.selectedList.length > 0 ? this.selectedList.join(',') : '', ids: this.selectedList.length > 0 ? this.selectedList.join(',') : '',
}; };
axios({ axios({
@@ -451,7 +451,7 @@ export default {
link.style.display = 'none'; link.style.display = 'none';
const objectUrl = URL.createObjectURL(blob); const objectUrl = URL.createObjectURL(blob);
link.href = objectUrl; link.href = objectUrl;
link.download = name + '.xlsx'; link.download = name ? name : '标准及译文获取申请' + '.xlsx';
link.click(); link.click();
URL.revokeObjectURL(objectUrl); URL.revokeObjectURL(objectUrl);
} }