Browse Source

元数据显示修改

duy 2 years ago
parent
commit
d3a003604e
2 changed files with 6 additions and 4 deletions
  1. 1 1
      src/views/transfer/components/meta-table.vue
  2. 5 3
      src/views/using/query.vue

+ 1 - 1
src/views/transfer/components/meta-table.vue

@@ -21,7 +21,7 @@
                             {{ item.containerName }}
                         </td>
                     </tr>
-                    <tr v-if="item.isType === 2" class="hc-csc-meta-table-tr">
+                    <tr v-else class="hc-csc-meta-table-tr">
                         <td class="hc-csc-meta-table-td name">
                             {{ item.containerName }}
                         </td>

+ 5 - 3
src/views/using/query.vue

@@ -414,7 +414,7 @@
                         </template>
                     </HcTable>
 
-                    <MetaTable v-if="tabTypeKey === 'tab5'" :loading="cscTableLoading" :ishow-file="checkId.length > 0 ? true : false" :meta-data-table="cscmetaDataTabledata" />
+                    <MetaTable v-if="tabTypeKey === 'tab5'" :loading="cscTableLoading" :ishow-file="isFile === 1 ? false : true" :meta-data-table="cscmetaDataTabledata" />
 
                     <HcTable v-if="tabTypeKey === 'tab6'" :column="cscTableColumn5" :datas="cscTableData5" :loading="cscTableLoading" />
 
@@ -437,7 +437,7 @@
 
         <!-- 使用弹窗查看数据 -->
         <HcDialog :show="cscTableDataModal" :title="cscTableDataTitle" widths="1080px" is-table :footer="false" @close="cscTableDataModalClose">
-            <MetaTable v-if="tabTypeKey === 'tab5'" :loading="cscTableLoading" :ishow-file="checkId.length > 0 ? true : false" :meta-data-table="cscmetaDataTabledata" />
+            <MetaTable v-if="tabTypeKey === 'tab5'" :loading="cscTableLoading" :ishow-file="isFile === 1 ? false : true" :meta-data-table="cscmetaDataTabledata" />
             <HcTable v-if="tabTypeKey === 'tab6'" :column="cscTableColumn51" :datas="cscTableData5" :loading="cscTableLoading" />
         </HcDialog>
 
@@ -1112,6 +1112,7 @@ const viewPdf = async (id) => {
     }
 }
 const isFile = ref('')//查阅案卷或者查阅文件
+const checkId = ref('')
 const consultFileClick = async (row, type) => {
     isCarrySpotChecksDrawer.value = true
     isFile.value = type
@@ -1143,7 +1144,7 @@ const fileInfo = ref({
     time:'',
     pageN:0,
 })//案卷信息
-const checkId = ref('')
+
 const changePdf = (row)=>{
     console.log(row, 'row')
     if (pdfLoading.value === true) {
@@ -1151,6 +1152,7 @@ const changePdf = (row)=>{
     }
     pdfUrl.value = row['pdfFileUrl'] || ''
     checkId.value = row.id
+    isFile.value = 2
     getmetaInfo(checkId.value)
 
 }