Files
Nexus/docs/changelog/2026-06-08-alerts-page-size-fix.md
T
Nexus Agent 3864d120fb fix: alerts page size and schedule once fire_at parsing.
Wire alert history items-per-page to the API and parse fire_at ISO strings to datetime so single-shot push schedules save instead of 500.
2026-06-09 02:47:36 +08:00

821 B
Raw Blame History

2026-06-08 告警中心每页条数修复

摘要

修复告警历史表格「每页数目」选择无效:此前写死 20 条且未监听 update:items-per-page

动机

用户切换每页 10/50/100/全部 时 UI 与 API 请求均不变,分页体验与命令日志等页不一致。

变更

  • frontend/src/pages/AlertsPage.vueitemsPerPage 状态、dataTablePageOptionsonItemsPerPageChangeloadAlerts 改用 fetchPagePerPage(支持「全部」多页拉取)。
  • server/api/settings.pylist_alert_historyper_page 上限 100 → 200,与全站表格选项一致。

验证

cd frontend && npm run build
.venv/bin/pytest tests/integration/test_alerts_audit.py -q

浏览器:告警中心切换每页条数,表格行数与请求 per_page 一致。