From 4d6e2cff39cd167efa84972124e9cbdaebedcce8 Mon Sep 17 00:00:00 2001
From: xuhuajiao <13476289682@163.com>
Date: Wed, 26 Nov 2025 18:28:29 +0800
Subject: [PATCH] 20251126-2
---
.../prearchiveLibrary/prearchiveLibrary.js | 11 +-
src/api/system/auth2.js | 11 +-
src/utils/index.js | 25 +
.../collectionLibrary/anjuan/tableList.vue | 5 +-
.../collectionLibrary/juannei/index.vue | 5 +-
.../module/collectHeader.vue | 4 +-
src/views/components/category/PreviewForm.vue | 13 +-
.../category/preUpload4 -数组.vue | 645 ++++++++++++++++++
src/views/components/category/preUpload4.vue | 591 +++++++++-------
src/views/prearchiveLibrary/module/detail.vue | 35 +-
src/views/system/archivesCategory/form.vue | 4 +-
11 files changed, 1100 insertions(+), 249 deletions(-)
create mode 100644 src/views/components/category/preUpload4 -数组.vue
diff --git a/src/api/prearchiveLibrary/prearchiveLibrary.js b/src/api/prearchiveLibrary/prearchiveLibrary.js
index 880c577..ac29c91 100644
--- a/src/api/prearchiveLibrary/prearchiveLibrary.js
+++ b/src/api/prearchiveLibrary/prearchiveLibrary.js
@@ -117,4 +117,13 @@ export function FetchReDocumentBase64ByFileId(params) {
})
}
-export default { add, prearchEdit, del, FetchInitPreDocument, FetchInitDocumentsViewTable, FetchDoeditDocument, FetchBatchToFile, FetchMergeToFile, FetchMove, FetchArchivesDetails, FetchFileListByDocumentId, FetchArchivesMetadata, FetchReDocumentBase64ByFileId }
+// downloadFile
+export function FetchDownload(params) {
+ return request({
+ url: 'api/minioUpload/download',
+ method: 'get',
+ params
+ })
+}
+
+export default { add, prearchEdit, del, FetchInitPreDocument, FetchInitDocumentsViewTable, FetchDoeditDocument, FetchBatchToFile, FetchMergeToFile, FetchMove, FetchArchivesDetails, FetchFileListByDocumentId, FetchArchivesMetadata, FetchReDocumentBase64ByFileId, FetchDownload }
diff --git a/src/api/system/auth2.js b/src/api/system/auth2.js
index 5a4577e..e1d4099 100644
--- a/src/api/system/auth2.js
+++ b/src/api/system/auth2.js
@@ -52,4 +52,13 @@ export function FetchCaPasswordById(params) {
})
}
-export default { add, edit, del, FetchAppSecret, FetchCaPfxCertificatesById, FetchCaPasswordById }
+// 判断ca证书是否在有效期内
+export function FetchCheckCaValidity(params) {
+ return request({
+ url: 'api/oauthClient/checkCaValidity',
+ method: 'get',
+ params
+ })
+}
+
+export default { add, edit, del, FetchAppSecret, FetchCaPfxCertificatesById, FetchCaPasswordById, FetchCheckCaValidity }
diff --git a/src/utils/index.js b/src/utils/index.js
index 72779ca..e8be029 100644
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -475,3 +475,28 @@ export function saveByteArray(fileName, byte) {
link.click()
}
+// 下载文件
+export function downloadMinioFile(obj, name, suffix) {
+ // 校验参数,避免空值
+ if (!obj || !name || !suffix) {
+ console.error('下载参数缺失:obj/name/suffix不能为空')
+ return
+ }
+ try {
+ const blob = new Blob([obj])
+ const url = window.URL.createObjectURL(blob)
+ const link = document.createElement('a')
+ link.style.display = 'none'
+ link.href = url
+ const fileName = `${name}.${suffix}`
+ link.setAttribute('download', fileName)
+ document.body.appendChild(link)
+ link.click()
+ setTimeout(() => {
+ document.body.removeChild(link)
+ window.URL.revokeObjectURL(url)
+ }, 100)
+ } catch (err) {
+ console.error('下载工具函数执行失败:', err)
+ }
+}
diff --git a/src/views/collectReorganizi/collectionLibrary/anjuan/tableList.vue b/src/views/collectReorganizi/collectionLibrary/anjuan/tableList.vue
index d9d54d0..52b0a84 100644
--- a/src/views/collectReorganizi/collectionLibrary/anjuan/tableList.vue
+++ b/src/views/collectReorganizi/collectionLibrary/anjuan/tableList.vue
@@ -47,12 +47,11 @@
{{ scope.row[field.fieldName] }}
-
+
{{ scope.row.case_no ? '已装': '未装' }}
-
+ -->
{{ scope.row.collect_formal===2 ? '归档': '空闲' }}
diff --git a/src/views/collectReorganizi/collectionLibrary/juannei/index.vue b/src/views/collectReorganizi/collectionLibrary/juannei/index.vue
index 2633aa0..1248d8d 100644
--- a/src/views/collectReorganizi/collectionLibrary/juannei/index.vue
+++ b/src/views/collectReorganizi/collectionLibrary/juannei/index.vue
@@ -57,12 +57,11 @@
{{ scope.row[field.fieldName] }}
-
+
{{ scope.row.case_no ? '已装': '未装' }}
-
+ -->
{{ scope.row.collect_formal===2 ? '归档': '空闲' }}
diff --git a/src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue b/src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue
index 43fe7f7..7e0c444 100644
--- a/src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue
+++ b/src/views/collectReorganizi/collectionLibrary/module/collectHeader.vue
@@ -106,11 +106,11 @@
快速组卷
手工组卷
-