feat: 测试信息页增加每页记录数选择(20/50/100)

This commit is contained in:
wangfq
2026-06-05 10:41:50 +08:00
parent 3509caf79d
commit 3151d71cdc
2 changed files with 11 additions and 1 deletions

View File

@@ -99,7 +99,9 @@ async function searchData(page = 1) {
const dateTo = document.getElementById("search-date-to").value;
const v = VIEWS[currentView];
const params = new URLSearchParams({ page, per_page: 20 });
const perPage = parseInt(document.getElementById("per-page").value) || 20;
const params = new URLSearchParams({ page, per_page: perPage });
if (serial) params.set("serial", serial);
if (dateFrom) params.set("date_from", dateFrom);
if (dateTo) params.set("date_to", dateTo);