|
@@ -1670,7 +1670,12 @@ export default {
|
|
|
|
|
|
this.pptView=false
|
|
|
this.ppt=true
|
|
|
-
|
|
|
+ //如果是PDF等直接可以打开的就不调接口,否则调用接口
|
|
|
+ if(row.fileName.endsWith('pdf')){
|
|
|
+ this.pdf.pdfUrl = process.env.VUE_APP_BASE_API + '/pdf/web/viewer.html?file=' + process.env.VUE_APP_BASE_API + row.fileUrl
|
|
|
+ this.loadingFlash=false
|
|
|
+ }
|
|
|
+ else{
|
|
|
const formatDate =new FormData();
|
|
|
formatDate.append("filepath",row.fileUrl)
|
|
|
|
|
@@ -1724,7 +1729,7 @@ export default {
|
|
|
this.loadingFlash = false;
|
|
|
|
|
|
})
|
|
|
-
|
|
|
+ }
|
|
|
|
|
|
|
|
|
},
|