feat(task-board): 手动刷新铺满全部 16 个任务面板页

用户点名「只要是任务的功能都要加上」:TaskCenterPanel 的 on-refresh 按各自骨架接线
——useLiveTaskBoard 两页强拉 history+dashboard+进度;手写 fetch 五页 allSettled
(history+dashboard+refreshTaskBatch);useHistoryPolling 三页 refreshTaskViews+活跃进度;
useTaskProgressLoop 两页加 progressLoop.refreshOnce;一次性拉取三页直挂各自 load 函数;
品牌检测复用既有 syncTasksAndResumePolling。接线守卫测试扩到 16 页。
This commit is contained in:
2026-10-22 15:48:44 +08:00
parent 6d52b95d85
commit aa7e17f95c
15 changed files with 84 additions and 1 deletions
@@ -110,6 +110,7 @@
<section class="right-panel">
<TaskCenterPanel
:on-batch-delete="batchDeleteHistory"
:on-refresh="refreshBoard"
title="采集数据"
:cards="collectCards"
:current-items="currentTaskViews"
@@ -572,6 +573,11 @@ async function downloadResult(item: CollectDataHistoryItem) {
}
}
/** 手动刷新:强拉历史 + 统计 + 当前轮询任务进度(轮询意外中断后的自救出口) */
async function refreshBoard() {
await Promise.all([loadDashboard(), loadHistory(), progressLoop.refreshOnce()])
}
async function loadDashboard() {
try {
dashboard.value = await getCollectDataDashboard()