jxq 3 days ago
parent
commit
27f79f04f2
1 changed files with 5 additions and 6 deletions
  1. 5 6
      src/views/base/craftManagement/route/components/bottomTable.vue

+ 5 - 6
src/views/base/craftManagement/route/components/bottomTable.vue

@@ -21,19 +21,18 @@
         <!-- <single-upload v-model="form.filePath" />
         <FilesUpload v-model:src="form.filePath" v-model:src-list="form.filePath" /> -->
         <div style="height: 100px; width: 100px; overflow: hidden">
-<!--          <PDFView
+          <!--          <PDFView
             :need-to-show-pdf="true"
             content-type="button"
             :is-link="true"
             :show-pdf-number="form.showAppointPageNum"
             :pdf-source="pdfPath"
           />-->
-          <el-button link type="primary" @click="toShowPDF(row)">
-          </el-button>
+          <el-button link type="primary" @click="toShowPDF(row)"> </el-button>
         </div>
       </template>
       <template #filePath="{ row }">
-<!--        <PDFView
+        <!--        <PDFView
           :need-to-show-pdf="true"
           content-type="button"
           btnText="查看PDF"
@@ -53,7 +52,7 @@
       :multipleRow="multipleRow"
       @selected-sure="onSelectedFinish"
     />
-<!--    <el-dialog v-model="dialogVisible">
+    <!--    <el-dialog v-model="dialogVisible">
       <VuePdfEmbed :source="previewImgUrl" annotation-layer text-layer />
     </el-dialog>-->
   </div>
@@ -184,7 +183,7 @@ const onSortChange = () => {
 
 const PDFDrawerViewRef = ref(null);
 const toShowPDF = (row) => {
-  let url = import.meta.env.VITE_APP_UPLOAD_URL + row.pdfPath;
+  let url = import.meta.env.VITE_APP_UPLOAD_URL + row.filePath;
   PDFDrawerViewRef.value && PDFDrawerViewRef.value.showPdf(url);
 };