소스 검색

fix: 天水报告

刘秀芳 8 달 전
부모
커밋
cbe4d68ab3
3개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. BIN
      public/ts.pdf
  2. 2 1
      src/components/PdfDialog.vue
  3. 5 5
      src/views/home/components/homePage.vue

BIN
public/ts.pdf


+ 2 - 1
src/components/PdfDialog.vue

@@ -13,7 +13,8 @@
         <div class="btn" @click="handleExport">导出</div>
         <div class="myclose cursor-pointer" @click="closeDialog"></div>
       </div>
-      <iframe class="my-body" :src="src" id="my-pdf"></iframe>
+      <!-- <iframe class="my-body" :src="src" id="my-pdf"></iframe> -->
+      <iframe class="my-body" src="/ts.pdf" id="my-pdf"></iframe>
     </div>
   </el-dialog>
 </template>

+ 5 - 5
src/views/home/components/homePage.vue

@@ -2,9 +2,9 @@
     <div class="chart-list">
         <div class="chart-item weather-item">
             <chart-box name="气象预警">
-                <!-- <template #title-right>
+                <template #title-right>
                     <div class="button" @click="gybg">果园报告</div>
-                </template> -->
+                </template>
                 <div class="base-wrap">
                     <div class="base-item" v-for="(item, index) in baseData.labels" :key="index">
                         <div class="label">{{ item }}风险</div>
@@ -270,9 +270,9 @@ const growObj = ref({});
 const ecologyObj = ref({});
 
 const gybg = () => {
-    VE_API.farm_files.last({ farmId: 766, key: "pdf_report" }).then(({ data }) => {
-        eventBus.emit("homePage:gybg", { filename: data.path, title: "果园报告" });
-    });
+    // VE_API.farm_files.last({ farmId: 766, key: "pdf_report" }).then(({ data }) => {
+    // });
+    eventBus.emit("homePage:gybg", { filename: "ts", title: "果园报告" });
 };
 </script>