Browse Source

2022.8.16

ggooalice 2 years ago
parent
commit
a3d97380da

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/awayOffice/awayOffice.vue

@@ -808,7 +808,7 @@ export default {
                 if(res.code == 'ok'){
                     var filePath = res.data;
                     const a = document.createElement('a'); // 创建a标签
-                    a.setAttribute('download', '出差统计导出');// download属性
+                    a.setAttribute('download', '出差统计导出.xls');// download属性
                     a.setAttribute('href', filePath);// href链接
                     a.click(); //自执行点击事件
                     a.remove();