yanyan 1 year ago
parent
commit
13c3b1322b
  1. 13
      src/views/common/pdfvVew.vue
  2. 2
      src/views/enforce/enforcementPlan.vue

13
src/views/common/pdfvVew.vue

@ -7,7 +7,7 @@
</header-nav>
</div>
<div class="m-pdf">
<div id="pdf-content"></div>
<div id="pdf-content" style="width: 98%"></div>
</div>
</template>
<script >
@ -33,9 +33,7 @@ export default {
// pdfh5 = new Pdfh5(selector, options) goto初始到第几页,logo设置每一页pdf上的水印
this.pdfh5 = new Pdfh5("#pdf-content", {
pdfurl: this.pdfUrl,
goto: 1,
cMapUrl: 'https://unpkg.com/pdfjs-dist@3.8.162/cmaps/',
lazy: false
goto: 1
// 设置每一页pdf上的水印
});
@ -58,12 +56,7 @@ export default {
</script>
<style scoped>
.m-pdf{
//height: 100%;
position: fixed;
top: 0;
bottom: 0;
right: 0;
left: 0;
height: 100%;
}
</style>

2
src/views/enforce/enforcementPlan.vue

@ -217,7 +217,7 @@
if (null != url) {
router.push(
{
path: "/pdfPreview",
path: "/pdfView",
query: {
url: url
}

Loading…
Cancel
Save