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;