提交 50e9c3b7 authored 作者: quanlili's avatar quanlili

修改回退问题

上级 e9222b94
......@@ -29,8 +29,10 @@
<div style="width:80%;margin:0 auto;height:800px;text-align:center" v-if="pdf.resourceType==2||pdf.resourceType==6">
<img :src="`${domain}${requestPath.file}?fileName=${pdf.fileName}&isOnLine=true`" alt="图片" class="pic_show">
</div>
<div style="width:80%;margin:0 auto;height:800px" v-else>
<iframe :src="`${domain}${pdf.pdfName}`" frameborder="0" width="100%" height="100%"></iframe>
<div v-else>
<div v-html="iframeHtml" style="width:80%;margin:0 auto;height:800px">
</div>
<!-- <iframe :src="`${domain}${pdf.pdfName}`" frameborder="0" width="100%" height="100%"></iframe> -->
</div>
</div>
</div>
......@@ -176,8 +178,8 @@ export default {
isShow:false,
activeStatus:0,
id:'',
iframeHtml:'',
pdf:{
pdfName:""
},
}
},
......@@ -205,6 +207,8 @@ export default {
if(res.data.code===0){
let {fileName}=res.data.data;
this.pdf=res.data.data;
//浏览器不记录iframe的路径
this.iframeHtml= `"<iframe src='${this.domain}${this.pdf.pdfName}' frameborder='0' width='100%' height='100%'></iframe>"`
//回显,置空备注
this.pdf.remark='';
this.activeStatus=this.pdf.status;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论