【修改】下载
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user