|
@@ -1,4 +1,4 @@
|
|
-import {httpApi} from "../../request/httpApi";
|
|
|
|
|
|
+import { httpApi } from '../../request/httpApi'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
//分页
|
|
//分页
|
|
@@ -6,8 +6,8 @@ export default {
|
|
return httpApi({
|
|
return httpApi({
|
|
url: '/api/blade-archive/archiveFileAuto/page',
|
|
url: '/api/blade-archive/archiveFileAuto/page',
|
|
method: 'post',
|
|
method: 'post',
|
|
- params: form
|
|
|
|
- }, msg);
|
|
|
|
|
|
+ params: form,
|
|
|
|
+ }, msg)
|
|
},
|
|
},
|
|
|
|
|
|
//批量新增
|
|
//批量新增
|
|
@@ -15,17 +15,25 @@ export default {
|
|
return httpApi({
|
|
return httpApi({
|
|
url: '/api/blade-archive/archiveFileAuto/batchSave',
|
|
url: '/api/blade-archive/archiveFileAuto/batchSave',
|
|
method: 'post',
|
|
method: 'post',
|
|
- data: form
|
|
|
|
|
|
+ data: form,
|
|
}, msg)
|
|
}, msg)
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ //批量修改
|
|
|
|
+ async batchUpdateSort(form, msg = true) {
|
|
|
|
+ return httpApi({
|
|
|
|
+ url: '/api/blade-archive/archiveFile/batchUpdateSort',
|
|
|
|
+ method: 'post',
|
|
|
|
+ data: form,
|
|
|
|
+ }, msg)
|
|
|
|
+ },
|
|
//跨目录移动
|
|
//跨目录移动
|
|
async migrateFile(form, msg = true) {
|
|
async migrateFile(form, msg = true) {
|
|
return httpApi({
|
|
return httpApi({
|
|
url: '/api/blade-archive/archiveFileAuto/migrateFile',
|
|
url: '/api/blade-archive/archiveFileAuto/migrateFile',
|
|
method: 'post',
|
|
method: 'post',
|
|
- params: form
|
|
|
|
- }, msg);
|
|
|
|
|
|
+ params: form,
|
|
|
|
+ }, msg)
|
|
},
|
|
},
|
|
|
|
|
|
//批量下载
|
|
//批量下载
|
|
@@ -34,8 +42,8 @@ export default {
|
|
url: '/api/blade-archive/archiveFileAuto/batchDownloadFileToZip',
|
|
url: '/api/blade-archive/archiveFileAuto/batchDownloadFileToZip',
|
|
method: 'post',
|
|
method: 'post',
|
|
params: form,
|
|
params: form,
|
|
- responseType: 'blob'
|
|
|
|
- }, msg);
|
|
|
|
|
|
+ responseType: 'blob',
|
|
|
|
+ }, msg)
|
|
},
|
|
},
|
|
|
|
|
|
//删除
|
|
//删除
|
|
@@ -43,8 +51,8 @@ export default {
|
|
return httpApi({
|
|
return httpApi({
|
|
url: '/api/blade-archive/archiveFileAuto/remove',
|
|
url: '/api/blade-archive/archiveFileAuto/remove',
|
|
method: 'post',
|
|
method: 'post',
|
|
- params: form
|
|
|
|
- }, msg);
|
|
|
|
|
|
+ params: form,
|
|
|
|
+ }, msg)
|
|
},
|
|
},
|
|
|
|
|
|
//获取pdf
|
|
//获取pdf
|
|
@@ -52,8 +60,8 @@ export default {
|
|
return httpApi({
|
|
return httpApi({
|
|
url: '/api/blade-archive/archiveFileAuto/mergePdf',
|
|
url: '/api/blade-archive/archiveFileAuto/mergePdf',
|
|
method: 'post',
|
|
method: 'post',
|
|
- params: form
|
|
|
|
- }, msg);
|
|
|
|
|
|
+ params: form,
|
|
|
|
+ }, msg)
|
|
},
|
|
},
|
|
|
|
|
|
}
|
|
}
|