PDF回显

This commit is contained in:
mengxiaolong
2020-08-10 11:46:41 +08:00
parent 9e08e6b8de
commit 91b6cc1936

View File

@@ -200,8 +200,7 @@ export default {
phoneNum: '',
showConfirm: false,
src: location.origin + '/pdfjs/web/viewer.html?file=',
pdfUrl:
'http%3A%2F%2F211.159.248.123%3A7012%2Fupdown%2FreturnDirectStream%3FimgPath%3DRa4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoOA9uW8ICM9LYlGVdO7t3FsCzwpgqViOwXX%250Azzw1VlDqdTG6qHfvfy5WDol9WprvRcWVGLphInLPv0HGtHpZ3OhD',
pdfUrl: '',
// 转账不成功处理方式是否不可用
handleType: false
}
@@ -494,8 +493,7 @@ export default {
})
// 包含投保人和被保人证件id和姓名
this.problemInfo = rs.content
// this.pdfUrl = this.problemInfo.pdfUrl
// this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${this.pdfUrl}`)
this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${this.problemInfo.pdfUrl}`)
this.problemDetail = this.problemInfo.list[0]
// 问题件接收人类型: 0投保人, 1被保人
this.problemDetail.receiveType = this.$route.query.receiveType
@@ -624,6 +622,11 @@ export default {
}
</script>
<style lang="scss" scoped>
.iframe {
width: 100vw;
height: 70vh;
}
.uploadTitle {
font-size: 14px;
margin-bottom: 0.5em;
@@ -696,7 +699,6 @@ export default {
}
.pdf {
width: 100%;
height: 200px;
border-bottom: 1px solid #eee;
}
.checkedBox {