浏览代码

预览卷内文件pdf

duy 2 年之前
父节点
当前提交
a28c403d07
共有 1 个文件被更改,包括 13 次插入3 次删除
  1. 13 3
      src/views/archives/tuning.vue

+ 13 - 3
src/views/archives/tuning.vue

@@ -108,7 +108,7 @@
                                         style=" color:rgb(64, 149, 229);"/>
                                 <!-- <HcIcon name="delete-bin" @click="delModalClick" class="hc-icon-close text-hover"
                                         style="margin-left:5px;margin-right:5px;color: rgb(189, 49, 36);"/> -->
-                                <HcIcon name="close" @click="closetableFile" class="hc-icon-close text-hover"
+                                <HcIcon name="close" @click="closetableFile" class="hc-icon-close 'text-hover'"
                                         style=" color:rgb(64, 149, 229);"/>
                             </div>
 
@@ -126,10 +126,13 @@
                                     <HcTooltip keys="archives_tuning_btn_sort">
                                         <span class="text-link text-lg" @click="intableSortClick">
                                             <HcIcon name="arrow-up-down"
-                                                    :class="text-hover"/>
+                                                    :class="'text-hover'"/>
                                         </span>
                                     </HcTooltip>
                                 </template>
+                                <template #fileName="{row}">
+                                    <span class="text-link text-hover" @click="viewfilePdf(row)">{{ row?.fileName }}</span>
+                                </template>
                             </HcTable>
                             <!-- <HcPages :pages="insearchForm" @change="inpageChange"/> -->
                         </div>
@@ -907,7 +910,14 @@ const viewPdf = async (id) => {
     //     window.$message?.warning(msg)
     // }
 }
-
+//查看卷内文件pdf
+const viewfilePdf=(row)=>{
+    if(row?.pdfFileUrl){
+        window.open(row?.pdfFileUrl, '_blank')
+    }else{
+        window.$message?.warning('文件不存在')
+    }
+}
 //档号整理
 const refreshFileNumberLoading = ref(false)
 const refreshFileNumberClick = async () => {