From 3d234b6102f3ceb5fa9fee343be7529d81b61ffb Mon Sep 17 00:00:00 2001
From: yzj <2239426921@qq.com>
Date: Sun, 22 May 2022 20:06:00 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E9=94=AE=E6=8C=82?=
=?UTF-8?q?=E6=8E=A5=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/archives/fileUploadList.js | 12 +++++++++++-
src/views/archives/importRecord/index.vue | 13 +++++++++++++
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/src/api/archives/fileUploadList.js b/src/api/archives/fileUploadList.js
index 429efd6..58b912d 100644
--- a/src/api/archives/fileUploadList.js
+++ b/src/api/archives/fileUploadList.js
@@ -50,4 +50,14 @@ export function exportFileUploadList(query) {
method: 'get',
params: query
})
-}
\ No newline at end of file
+}
+
+
+
+// 一键挂载文件
+export function hookUpAttachmentsV2(type) {
+ return request({
+ url: '/archives/archiveImport/hookUpAttachments/v2/'+type,
+ method: 'post',
+ })
+}
diff --git a/src/views/archives/importRecord/index.vue b/src/views/archives/importRecord/index.vue
index e3c741f..2b3921d 100644
--- a/src/views/archives/importRecord/index.vue
+++ b/src/views/archives/importRecord/index.vue
@@ -34,6 +34,7 @@
>
+ 一键挂接
导入说明(必看)
模板下载
上传档案
@@ -42,6 +43,7 @@
挂接历史
清空将导入信息
导入信息
+
@@ -174,6 +176,7 @@ import store from "@/store";
import {getOptionUtils} from "@/utils/util";
import ShowFileList from "@/views/archives/showFileList/index";
import fileUpload from "@/views/archives/fileUpload/index";
+import {hookUpAttachmentsV2 }from "@/api/archives/fileUploadList";
import StorageTime from "@/views/archives/commonComponent/storageTime";
export default {
components: {ShowFileList, archiveFileinfo,fileUpload,history,StorageTime},
@@ -261,6 +264,16 @@ export default {
this.$refs.crud.option.column[1].hide=true
},
methods: {
+ upAttachmentsV2(){
+
+ hookUpAttachmentsV2(this.code).then(res=>{
+ if(res.code==200){
+ this.$notify.success('挂载成功')
+ }else {
+ this.$notify.error(res.msg)
+ }
+ })
+ },
changeArchiveScopeValue(val){
if (val!=null&&val!='-1'){
this.archiveScopeValue=val;