Selaa lähdekoodia

案卷元数据信息

duy 2 vuotta sitten
vanhempi
commit
4df283100d

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

@@ -16,7 +16,12 @@
                             {{ item.containerName }}
                         </td>
                     </tr>
-                    <tr v-else class="hc-csc-meta-table-tr">
+                    <tr v-if="item.isType === 3" class="hc-csc-meta-table-tr">
+                        <td colspan="2" class="hc-csc-meta-table-td " style="text-align: center;">
+                            {{ item.containerName }}
+                        </td>
+                    </tr>
+                    <tr v-if="item.isType === 2" class="hc-csc-meta-table-tr">
                         <td class="hc-csc-meta-table-td name">
                             {{ item.containerName }}
                         </td>

+ 1 - 1
src/views/transfer/inspects.vue

@@ -478,7 +478,7 @@ const getArchivesAutoView = async (fileId)=>{
     if (!error && code === 200) {
         let obj = getObjValue(data)
         cscmetaDataTabledata.value = [
-            { containerName:'题名', keyValue:'', isType:1 },
+            { containerName:'题名', keyValue:'', isType:3 },
             { containerName:'档号', keyValue:obj?.fileNumber, isType:2 },
             { containerName:'文件件数', keyValue:obj?.fileN, isType:2 },
             { containerName:'移交时间', keyValue:'', isType:2 },

+ 4 - 7
src/views/using/query.vue

@@ -1111,13 +1111,13 @@ const consultFileClick = async (row, type) => {
     isFile.value = type
     if (type === 1) {
         //查阅案卷
-
+        getArchivesAutoView( row.id)
         fileInfo.value = row
         getArchiveFileListData()
         const url = await viewPdf(row.id)
         pdfUrl.value = url
         checkId.value = ''
-        getArchivesAutoView( fileInfo.value.id)
+      
 
     } else if (type == 2) {//查阅卷内文件
         checkId.value = row.id
@@ -1242,10 +1242,7 @@ const cscTableDataModalShow = () => {
     if (key === 'tab5') {
         cscTableDataTitle.value = '元数据'
         if (isFile.value == 1) {
-            if (tableFileData.value.length > 0) {
-                getArchivesAutoView( fileInfo.value.id)
-              
-            }
+            getArchivesAutoView( fileInfo.value.id)
         } else {
             getmetaInfo(checkId.value)
         }
@@ -1568,7 +1565,7 @@ const getArchivesAutoView = async (fileId)=>{
     if (!error && code === 200) {
         let obj = getObjValue(data)
         cscmetaDataTabledata.value = [
-            { containerName:'题名', keyValue:'', isType:1 },
+            { containerName:'题名', keyValue:'', isType:3 },
             { containerName:'档号', keyValue:obj?.fileNumber, isType:2 },
             { containerName:'文件件数', keyValue:obj?.fileN, isType:2 },
             { containerName:'移交时间', keyValue:'', isType:2 },