From 3151d71cdc129827f467f499d6bfc065936b0855 Mon Sep 17 00:00:00 2001 From: wangfq Date: Fri, 5 Jun 2026 10:41:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B5=8B=E8=AF=95=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=A1=B5=E5=A2=9E=E5=8A=A0=E6=AF=8F=E9=A1=B5=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=95=B0=E9=80=89=E6=8B=A9=EF=BC=8820/50/100=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- edc-web/app/static/js/test_data.js | 4 +++- edc-web/app/templates/test_data.html | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/edc-web/app/static/js/test_data.js b/edc-web/app/static/js/test_data.js index 052368b..eb00ffb 100644 --- a/edc-web/app/static/js/test_data.js +++ b/edc-web/app/static/js/test_data.js @@ -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); diff --git a/edc-web/app/templates/test_data.html b/edc-web/app/templates/test_data.html index 44a9ca7..2fd3d31 100644 --- a/edc-web/app/templates/test_data.html +++ b/edc-web/app/templates/test_data.html @@ -23,6 +23,14 @@ +