Commit 3b68935f authored by 李苏's avatar 李苏 💬

preview

parent 0d094969
...@@ -84,6 +84,7 @@ ...@@ -84,6 +84,7 @@
doQuerytree doQuerytree
} from "@/api/basicData/operationDcManagement.js"; } from "@/api/basicData/operationDcManagement.js";
import { import {
autoAttachPreview,
autoAttach, autoAttach,
autoAttachDownload, autoAttachDownload,
deleteAttachDownload, deleteAttachDownload,
...@@ -163,7 +164,7 @@ ...@@ -163,7 +164,7 @@
this.$warning('该文件不支持预览,请直接下载') this.$warning('该文件不支持预览,请直接下载')
return return
} }
autoAttachDownload({},'aqgl/jcsj/bzzywd',row.fileId).then(res=>{ autoAttachPreview({},'aqgl/jcsj/bzzywd',row.fileId).then(res=>{
if(res.type=='application/json'){ if(res.type=='application/json'){
this.$warning('您没有权限,请联系系统管理员!') this.$warning('您没有权限,请联系系统管理员!')
return return
......
...@@ -84,6 +84,7 @@ ...@@ -84,6 +84,7 @@
doQuerytree doQuerytree
} from "@/api/basicData/securityDocumentManagement.js"; } from "@/api/basicData/securityDocumentManagement.js";
import { import {
autoAttachPreview,
autoAttach, autoAttach,
autoAttachDownload, autoAttachDownload,
deleteAttachDownload, deleteAttachDownload,
...@@ -161,7 +162,7 @@ ...@@ -161,7 +162,7 @@
this.$warning('该文件不支持预览,请直接下载') this.$warning('该文件不支持预览,请直接下载')
return return
} }
autoAttachDownload({},'aqgl/jcsj/aqwd',row.fileId).then(res=>{ autoAttachPreview({},'aqgl/jcsj/aqwd',row.fileId).then(res=>{
if(res.type=='application/json'){ if(res.type=='application/json'){
this.$warning('您没有权限,请联系系统管理员!') this.$warning('您没有权限,请联系系统管理员!')
return return
......
...@@ -87,6 +87,7 @@ ...@@ -87,6 +87,7 @@
doQuerytree doQuerytree
} from "@/api/contingency/planManage.js"; } from "@/api/contingency/planManage.js";
import { import {
autoAttachPreview,
autoAttach, autoAttach,
autoAttachDownload, autoAttachDownload,
deleteAttachDownload, deleteAttachDownload,
...@@ -161,7 +162,7 @@ ...@@ -161,7 +162,7 @@
this.$warning('该文件不支持预览,请直接下载') this.$warning('该文件不支持预览,请直接下载')
return return
} }
autoAttachDownload({},this.baseUrl,row.fileId).then(res=>{ autoAttachPreview({},this.baseUrl,row.fileId).then(res=>{
if(res.type=='application/json'){ if(res.type=='application/json'){
this.$warning('您没有权限,请联系系统管理员!') this.$warning('您没有权限,请联系系统管理员!')
return return
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
width="100%" width="100%"
> >
<div v-if="show" style="height: 85vh;width: 100%"> <div v-if="show" style="height: 85vh;width: 100%">
<iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe> <iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe>
<img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" > <img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" >
</div> </div>
</el-dialog> </el-dialog>
...@@ -84,6 +84,7 @@ ...@@ -84,6 +84,7 @@
doQuerytree doQuerytree
} from "@/api/daily/nros.js"; } from "@/api/daily/nros.js";
import { import {
autoAttachPreview,
autoAttach, autoAttach,
autoAttachDownload, autoAttachDownload,
deleteAttachDownload, deleteAttachDownload,
...@@ -163,7 +164,7 @@ ...@@ -163,7 +164,7 @@
this.$warning('该文件不支持预览,请直接下载') this.$warning('该文件不支持预览,请直接下载')
return return
} }
autoAttachDownload({},'aqgl/rcgl/fcgzybz',row.fileId).then(res=>{ autoAttachPreview({},'aqgl/rcgl/fcgzybz',row.fileId).then(res=>{
if(res.type=='application/json'){ if(res.type=='application/json'){
this.$warning('您没有权限,请联系系统管理员!') this.$warning('您没有权限,请联系系统管理员!')
return return
......
...@@ -84,6 +84,7 @@ ...@@ -84,6 +84,7 @@
doQuerytree doQuerytree
} from "@/api/outsourcingDirector/approve.js"; } from "@/api/outsourcingDirector/approve.js";
import { import {
autoAttachPreview,
autoAttach, autoAttach,
autoAttachDownload, autoAttachDownload,
deleteAttachDownload, deleteAttachDownload,
...@@ -162,7 +163,7 @@ ...@@ -162,7 +163,7 @@
this.$warning('该文件不支持预览,请直接下载') this.$warning('该文件不支持预览,请直接下载')
return return
} }
autoAttachDownload({},'aqgl/wxglxy',row.fileId).then(res=>{ autoAttachPreview({},'aqgl/wxglxy',row.fileId).then(res=>{
if(res.type=='application/json'){ if(res.type=='application/json'){
this.$warning('您没有权限,请联系系统管理员!') this.$warning('您没有权限,请联系系统管理员!')
return return
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
width="100%" width="100%"
> >
<div v-if="show" style="height: 85vh;width: 100%"> <div v-if="show" style="height: 85vh;width: 100%">
<iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe> <iframe v-if="showType=='pdf'" :src="url" width="100%" height="100%" border="0"></iframe>
<img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" > <img v-if="['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1" :src="url" width="100%" height="100%" border="0" >
</div> </div>
</el-dialog> </el-dialog>
...@@ -84,6 +84,7 @@ ...@@ -84,6 +84,7 @@
doQuerytree doQuerytree
} from "@/api/outsourcingDirector/declare.js"; } from "@/api/outsourcingDirector/declare.js";
import { import {
autoAttachPreview,
autoAttach, autoAttach,
autoAttachDownload, autoAttachDownload,
deleteAttachDownload, deleteAttachDownload,
...@@ -163,7 +164,7 @@ ...@@ -163,7 +164,7 @@
this.$warning('该文件不支持预览,请直接下载') this.$warning('该文件不支持预览,请直接下载')
return return
} }
autoAttachDownload({},'aqgl/wxglzd',row.fileId).then(res=>{ autoAttachPreview({},'aqgl/wxglzd',row.fileId).then(res=>{
if(res.type=='application/json'){ if(res.type=='application/json'){
this.$warning('您没有权限,请联系系统管理员!') this.$warning('您没有权限,请联系系统管理员!')
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment