1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 17:33:18 +00:00

optimize ui and filter repo

This commit is contained in:
孙永强
2025-03-06 15:50:32 +08:00
parent 779fee29b6
commit 75a0cb4fcc
10 changed files with 170 additions and 198 deletions

View File

@@ -692,7 +692,7 @@ class SystemAdminAPI {
return this.req.get(url, { params: params });
}
sysAdminListFileAccessLogs(page, perPage, emails, repoID) {
sysAdminListFileAccessLogs(page, perPage, emails, repos) {
const url = this.server + '/api/v2.1/admin/logs/file-access-logs/';
let params = {
page: page,
@@ -701,8 +701,8 @@ class SystemAdminAPI {
if (emails && emails.length) {
params.emails = emails.join(',');
}
if (repoID != undefined) {
params.repo_id = repoID;
if (repos && repos.length) {
params.repos = repos.map(repo => repo.id).join(',');
}
return this.req.get(url, { params: params });
}