|
@@ -2933,7 +2933,12 @@ a {
|
|
|
companyId: this.user.companyId
|
|
|
},res => {
|
|
|
if(res.code == 'ok'){
|
|
|
-
|
|
|
+ var filePath = res.data;
|
|
|
+ const a = document.createElement('a'); // 创建a标签
|
|
|
+ a.setAttribute('download', fName);// download属性
|
|
|
+ a.setAttribute('href', filePath);// href链接
|
|
|
+ a.click(); //自执行点击事件
|
|
|
+ a.remove();
|
|
|
}else{
|
|
|
this.$message({
|
|
|
message: res.msg,
|