1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 01:41:39 +00:00

update export file access (#6112)

* update export file access

* optimize

* update

* update

* optimeze code

* optimize

* Update utils.py

* Update utils.py

* optimize code

* update

* update

* optimize code

---------

Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
Co-authored-by: r350178982 <32759763+r350178982@users.noreply.github.com>
This commit is contained in:
awu0403
2024-07-10 14:38:25 +08:00
committed by GitHub
parent fbda14c855
commit a27f6d340a
7 changed files with 212 additions and 283 deletions

View File

@@ -66,6 +66,21 @@ class SystemAdminAPI {
return this.req.get(url, {params: params});
}
sysAdminExportLogsExcel(start, end, logType) {
const url = this.server + '/api/v2.1/admin/logs/export-excel/';
const params = {
start: start,
end: end,
logType: logType
};
return this.req.get(url, { params: params });
}
queryAsyncOperationExportExcel(task_id) {
const url = this.server + '/api/v2.1/query-export-status/?task_id=' + task_id;
return this.req.get(url);
}
}
let systemAdminAPI = new SystemAdminAPI();