提交 e9222b94 authored 作者: quanlili's avatar quanlili

msg_packet页面回退问题

上级 8d546054
<template>
<div class="metadata_contrast app-container">
<div class=" clearfix">
<a><span class="refBtn fr" style="margin: 17px 0px 23px;" @click="$router.go(-1)"><i class="el-icon-back" ></i> 返回</span> </a>
<a><span class="refBtn fr" style="margin: 17px 0px 23px;" @click="backTo"><i class="el-icon-back" ></i> 返回</span> </a>
</div>
<el-row :gutter="20">
<el-col :span="12">
......@@ -51,7 +51,6 @@ export default {
mounted() {
this.file=JSON.parse(this.$route.query.file);
this.pdf=JSON.parse(this.$route.query.pdf);
console.log(this.file,this.pdf,'00000000000')
this.file.fileName=`${this.domain}${requestPath.file}?fileName=${this.file.fileName}&isOnLine=true`;
this.pdf.fileName=`${this.domain}${requestPath.file}?fileName=${this.pdf.fileName}&isOnLine=true`;
},
......@@ -70,6 +69,9 @@ export default {
},1000)
//window.location.reload()
},
backTo(){
this.$router.go(-1)
}
},
}
</script>
......
......@@ -25,7 +25,7 @@
</div>
<!-- 图片 -->
<div style="width:80%;margin:0 auto;height:800px;text-align:center" v-if="resourceType==2">
<img :src="`${this.domain}${requestPath.file}?fileName=${this.pdf.fileName}&isOnLine=true`" alt="" class="pic_show">
<img :src="`${domain}${requestPath.file}?fileName=${pdf.fileName}&isOnLine=true`" alt="" class="pic_show" v-if="pdf.fileName">
</div>
<!-- 图册 -->
<div style="width:80%;margin:0 auto;height:800px;text-align:center" v-else-if="resourceType==5">
......@@ -638,7 +638,7 @@ export default {
name:'',
text:''
},
fileName:"",
//fileName:"",
fleg:true,//控制无数据的,防止切换从有数据到无数据的控制
total:0,
list:[],
......
......@@ -27,7 +27,7 @@
</div>
</div>
<div style="width:80%;margin:0 auto;height:800px;text-align:center" v-if="pdf.resourceType==2||pdf.resourceType==6">
<img :src="`${this.domain}${requestPath.file}?fileName=${this.pdf.fileName}&isOnLine=true`" alt="图片" class="pic_show">
<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>
......@@ -172,15 +172,19 @@ export default {
passVisible:false,
domain: process.env.BASE_API,
requestPath: requestPath,
historyLen:null,
isShow:false,
activeStatus:0,
id:'',
pdf:{},
pdf:{
pdfName:""
},
}
},
mounted() {
this.id=this.$route.query.id;
this.getDetail();
this.historyLen=history.length;//解决iframe不稳定问题
},
computed: {
status() {
......@@ -275,7 +279,8 @@ export default {
})
},
backTo(){
this.$router.go(-1)
let len=this.historyLen-history.length-1;
this.$router.go(len)
},
refPage(){
this.loading=true;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论