|
@@ -26,7 +26,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="attachment" class="pdf-box">
|
|
|
- <pdf
|
|
|
+ <iframe
|
|
|
+ :src="attachment"
|
|
|
+ width="100%"
|
|
|
+ height="1000px"
|
|
|
+ id="ifm"
|
|
|
+ ></iframe>
|
|
|
+ <!-- <pdf
|
|
|
ref="pdf"
|
|
|
:src="attachment"
|
|
|
v-for="i in numPages"
|
|
@@ -34,7 +40,7 @@
|
|
|
:page="i"
|
|
|
>
|
|
|
{{ i / numPages }}
|
|
|
- </pdf>
|
|
|
+ </pdf> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -128,10 +134,13 @@ export default {
|
|
|
this.data = res;
|
|
|
this.loading = false;
|
|
|
this.attachment =
|
|
|
- process.env.VUE_APP_PDF_API +
|
|
|
- Base64.decode(this.$route.query.relativePath);
|
|
|
- this.getNumPages();
|
|
|
- console.log(this.attachment);
|
|
|
+ `http://docpreview.utschool.cn/onlinePreview?url=` +
|
|
|
+ this.$route.query.url;
|
|
|
+ // this.attachment =
|
|
|
+ // process.env.VUE_APP_PDF_API +
|
|
|
+ // Base64.decode(this.$route.query.relativePath);
|
|
|
+ // this.getNumPages();
|
|
|
+ // console.log(this.attachment);
|
|
|
})
|
|
|
.catch((res) => {
|
|
|
this.loading = false;
|