11wqe1 1 年之前
父节点
当前提交
26e6586b3a
共有 2 个文件被更改,包括 8 次插入7 次删除
  1. 1 1
      src/components/pages/components/vpdf.vue
  2. 7 6
      src/components/pages/components/worksDetail2.vue

+ 1 - 1
src/components/pages/components/vpdf.vue

@@ -10,7 +10,7 @@
       </pdf>
     </div> -->
     <iframe ref="viframe" style="width: 100%; height: 99%; border: none"
-      :src="'https://cloud.cocorobo.cn/pdf.js/web/viewer.html?file=' + encodeURIComponent(pdfUrl)"></iframe>
+      :src="pdfUrl"></iframe>
     <!-- <div class="rightArea">
       <div class="toolGroup">
         <div class="page">第 {{ page }} / {{ numPages }} 页</div>

+ 7 - 6
src/components/pages/components/worksDetail2.vue

@@ -775,7 +775,7 @@
                             评分:{{ worksDetail[sIndex].wpptInfo[0].score }}
                           </div>
                           <div
-                            style="height: 238px"
+                            style="height: 500px"
                             @click="
                               openFile(worksDetail[sIndex].wpptInfo[0].wpptInfo)
                             "
@@ -787,8 +787,8 @@
                                 )
                               "
                               style="
-                                width: 300px;
-                                height: 300px;
+                                width: 100%;
+                                height: 500px;
                                 position: absolute;
                                 z-index: 999;
                               "
@@ -796,7 +796,7 @@
                             <pdf
                               v-if="showPDF"
                               :pdfUrl="worksDetail[sIndex].wpptInfo[0].wpptInfo"
-                              style="width: 100%; height: 520px; overflow: auto"
+                              style="width: 100%; height: 95%; overflow: auto"
                             ></pdf>
                             <iframe
                               v-else
@@ -1573,14 +1573,13 @@
       <pdf
         v-if="showPDF"
         :pdfUrl="pptImgUrl"
-        style="width: 100%; height: 520px; overflow: auto"
+        style="width: 100%; height: 95%; overflow: auto"
       ></pdf>
       <iframe
         v-else
         :src="pptImgUrl"
         frameborder="0"
         width="100%"
-        height="600"
       ></iframe>
     </el-dialog>
   </div>
@@ -2756,6 +2755,8 @@ export default {
       this.dialogVisible2 = true;
     },
     openFile(f, t) {
+      console.log('fff',f);
+      
       this.pptImgUrl = f;
       if (t == 2) {
         this.showPDF = false;