【修改】下载

This commit is contained in:
zhoulingpo
2023-05-26 13:49:14 +08:00
parent 0ee3472c85
commit 4aed5a8e7d
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -149,6 +149,15 @@ export default {
})
},
// 下载文件
reportDownloadALL (data) {
return request({
url: '/api/report/downloadAll',
method: 'GET',
params: data,
responseType: 'blob'
})
},
// 下载文件
reportDownload (data) {
return request({
url: '/api/report/download',
+1 -1
View File
@@ -267,7 +267,7 @@ export default {
handleFile(row){
this.file=row
let lastName=row.fileName.split('.')
let list=['xls','xlsx']
let list=['xls','xlsx','XLS','XLSX']
if(list.indexOf(lastName[lastName.length-1])>-1){
this.showText=true
}else{