diff --git a/web/src/api/fileSynchronization/index.ts b/web/src/api/fileSynchronization/index.ts index 2b109c9..adfa0f0 100644 --- a/web/src/api/fileSynchronization/index.ts +++ b/web/src/api/fileSynchronization/index.ts @@ -7,6 +7,22 @@ export function listLocalAndBackup(params:any) { params:params, }); } +//查询本地结构树 +export function listLocalTree(params:any) { + return request({ + url: '/experimentalData/ts-files/listLocalTree', + method: 'post', + params:params, + }); +} +//查询工作空间结构树 +export function listBackupTree(params:any) { + return request({ + url: '/experimentalData/ts-files/listBackupTree', + method: 'post', + params:params, + }); +} //对比两个目录的文件差异 export function compare(params:any) { return request({ @@ -38,4 +54,12 @@ export function deleteTsFilesById(params:any) { method: 'post', params:params, }); +} +//所有文件备份到备份空间 +export function automaticFileBackup(params:any) { + return request({ + url: '/experimentalData/ts-files/automaticFileBackup', + method: 'post', + params:params, + }); } \ No newline at end of file diff --git a/web/src/views/testdata/fileSynchronization/index.vue b/web/src/views/testdata/fileSynchronization/index.vue index cf11f1b..8bb5ddd 100644 --- a/web/src/views/testdata/fileSynchronization/index.vue +++ b/web/src/views/testdata/fileSynchronization/index.vue @@ -5,11 +5,12 @@ export default {