Sfoglia il codice sorgente

档案查询卷内文件查看pdf

duy 2 anni fa
parent
commit
6773b3f313
1 ha cambiato i file con 11 aggiunte e 0 eliminazioni
  1. 11 0
      src/views/using/query.vue

+ 11 - 0
src/views/using/query.vue

@@ -124,6 +124,9 @@
                         <template #action="{row,index}">
                             <el-button type="primary" size="small" @click.stop="consultFileClick(row,2)">查阅文件</el-button>
                         </template>
+                        <template #fileName="{row}">
+                                    <span class="text-link text-hover" @click="viewfilePdf(row)">{{ row?.fileName }}</span>
+                         </template>
                     </HcTable>
                     <!-- <template #action>
                         <HcPages :pages="InsearchForm" @change="InpageChange"/>
@@ -822,6 +825,14 @@ const tableFileColumn = ref([
 const tableFileData = ref([
 
 ])
+//查看卷内文件pdf
+const viewfilePdf=(row)=>{
+    if(row?.pdfFileUrl){
+        window.open(row?.pdfFileUrl, '_blank')
+    }else{
+        window.$message?.warning('文件不存在')
+ }
+}
 const tableFileLoading = ref(false)
 const tableFileSelection = (rows) => {
     console.log(rows)