许宏杰 2 years ago
commit f2b6622e33

@ -3,7 +3,7 @@
* @Author: kery.chen
* @Description: 总体概览左侧
* @Date: 2021-11-30 11:08:50
* @LastEditTime: 2023-08-25 14:47:17
* @LastEditTime: 2023-08-30 14:28:57
* @FilePath : \\tcingiocpro\\src\\views\\privateOrder\\ecosphere\\components\\componentLeft.vue
-->
<template>
@ -335,10 +335,10 @@
class="file-content"
></div>
<div v-if="fileExtension === 'pdf'" class="file-content file-content-pdf">
<iframe style="height: 100%; width: 100%" :src="pdfUrl"></iframe>
<!-- <div v-for="i in numPages" :key="i">
<!-- <iframe style="height: 100%; width: 100%" :src="pdfUrl"></iframe> -->
<div v-for="i in numPages" :key="i">
<pdf ref="pdf" :key="i" :src="pdfUrl" :page="i"></pdf>
</div> -->
</div>
</div>
</div>
<span slot="footer" class="dialog-footer">
@ -1166,8 +1166,9 @@ export default {
row['材料路径'].lastIndexOf('.') + 1
)
if (this.fileExtension == "pdf") {
this.pdfUrl = process.env.VUE_APP_BASE_API2 + row['材料路径'];
this.dialogDetails = true
// this.pdfUrl = process.env.VUE_APP_BASE_API2 + row[''];
this.getNumPages(process.env.VUE_APP_BASE_API2 + row['材料路径'])
// this.dialogDetails = true
} else if (
this.fileExtension === "docx" ||
this.fileExtension === "doc"

Loading…
Cancel
Save