perf(frontend): 工具页分页/历史截断/轻量轮询/共享纯逻辑(审查 F5/F6/F9/F12/G3)

- F9 新增 useTablePaging composable 并接入 7 个工具页"匹配结果"表(只切渲染窗口,
  不加选择语义;每页 100 条)+ 深色分页样式
- F6 历史任务抽屉渲染截断(默认 50 条 + "显示全部/收起"),全选口径改为当前可见条目
- F5 新增 task-progress-polling 适配器:等待任务终态的紧循环走 /tasks/progress/light,
  异常或空响应回退重型 batch;已接入跟价/定时匹配的 waitForTaskTerminal
- F12 背景图 bg.jpg 251KB → 166KB(1920 宽 + quality 80,image-set 仍优先 webp)
- G3 抽出共享纯逻辑 task-queue-state(开始时间表序列化校验 + 记录缺失错误判定),
  5 个工具页删除逐字重复实现
- 新增 4 个单测文件(分页切片/历史截断/轻量轮询归一/任务队列纯逻辑)
This commit is contained in:
2026-09-14 06:23:46 +08:00
parent e76714c32e
commit 67223f8950
18 changed files with 684 additions and 69 deletions
+19
View File
@@ -143,3 +143,22 @@ html {
overflow-y: auto;
}
/* 匹配结果表分页(F9):风格与深色工具页一致,避免 el-pagination 默认浅色冲突 */
.matched-pagination {
display: flex;
justify-content: flex-end;
padding: 8px 4px 0;
--el-pagination-bg-color: transparent;
--el-pagination-text-color: #c8d2e2;
--el-pagination-button-color: #c8d2e2;
--el-pagination-button-bg-color: #242424;
--el-pagination-button-disabled-color: #6b7789;
--el-pagination-button-disabled-bg-color: #1e1e1e;
--el-pagination-hover-color: #4da3ff;
}
.matched-pagination .el-pagination__total {
color: #9fb0c8;
font-size: 12px;
}