Sfoglia il codice sorgente

档案查询元数据信息显示

duy 2 anni fa
parent
commit
4e3bcdb603
2 ha cambiato i file con 18 aggiunte e 3 eliminazioni
  1. 16 2
      src/views/transfer/components/meta-table.vue
  2. 2 1
      src/views/using/query.vue

+ 16 - 2
src/views/transfer/components/meta-table.vue

@@ -1,8 +1,14 @@
 <template>
     <div class="hc-csc-meta-table-data" v-loading="isLoading">
         <el-scrollbar>
+       
             <table class="hc-csc-meta-table" border="1">
+                <tr class="hc-csc-meta-table-tr">
+                        <td colspan="2" class="hc-csc-meta-table-td title" v-if="!iShowFile">案卷元数据信息</td>
+                        <td colspan="2" class="hc-csc-meta-table-td title" v-else>文件元数据信息</td>
+              </tr>
                 <template v-for="item in metaDataTable">
+                  
                     <tr class="hc-csc-meta-table-tr" v-if="item.type === 2">
                         <td colspan="2" class="hc-csc-meta-table-td title">{{item.title}}</td>
                     </tr>
@@ -32,6 +38,10 @@ const props = defineProps({
     loading: {
         type: Boolean,
         default: false
+    },
+    ishowFile:{
+        type: Boolean,
+        default: false
     }
 })
 
@@ -39,12 +49,16 @@ const props = defineProps({
 const projectId = ref(props.projectId);
 const contractId = ref(props.contractId);
 const isLoading = ref(props.loading);
+const iShowFile = ref(props.ishowFile);
 
 //监听
 watch(() => [
-    props.loading
-], ([loading]) => {
+    props.loading,
+    props.ishowFile
+], ([loading,ishowFile]) => {
     isLoading.value = loading;
+    console.log(ishowFile,'ishowFile');
+    iShowFile.value=ishowFile
 })
 
 //元数据

+ 2 - 1
src/views/using/query.vue

@@ -211,7 +211,7 @@
                         </template>
                     </HcTable>
 
-                    <MetaTable :loading="cscTableLoading" v-if="tabTypeKey === 'tab5'"/>
+                    <MetaTable :loading="cscTableLoading" v-if="tabTypeKey === 'tab5'" :ishowFile="checkId.length>0?true:false"/>
 
                     <HcTable :column="cscTableColumn5" :datas="cscTableData5" :loading="cscTableLoading" v-if="tabTypeKey === 'tab6'"/>
 
@@ -906,6 +906,7 @@ const consultFileClick =async (row,type) => {
         console.log(url,'url');
        
         pdfUrl.value=url
+        checkId.value=''
         // checkId.value=cscTableData1.value[0].id
         // pdfUrl.value=row.approvalFileList[0]['pdfFileUrl']
     }