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:
@@ -188,6 +188,7 @@
|
||||
|
||||
<TaskCenterPanel
|
||||
:on-batch-delete="batchDeleteHistory"
|
||||
:on-refresh="refreshBoard"
|
||||
title="匹配与任务"
|
||||
:cards="withdrawCards"
|
||||
:current-items="currentTaskViews"
|
||||
@@ -798,6 +799,12 @@ async function loadHistory() {
|
||||
historyItems.value = (data.items || []).map((item) => withWithdrawFallback(item));
|
||||
}
|
||||
|
||||
/** 手动刷新:强拉历史 + 统计 + 活跃任务进度(轮询意外中断后的自救出口) */
|
||||
async function refreshBoard() {
|
||||
await refreshTaskViews()
|
||||
await refreshActiveTaskProgress()
|
||||
}
|
||||
|
||||
async function refreshTaskViews() {
|
||||
await Promise.all([loadDashboard(), loadHistory()]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user