许宏杰 2 years ago
commit f2b6622e33

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

Loading…
Cancel
Save