|
@@ -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();
|