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:
@@ -70,6 +70,7 @@
|
||||
<section class="right-panel">
|
||||
<TaskCenterPanel
|
||||
:on-batch-delete="batchDeleteHistory"
|
||||
:on-refresh="refreshBoard"
|
||||
title="删除品牌结果"
|
||||
:cards="deleteBrandCards"
|
||||
:current-items="currentTaskViews"
|
||||
@@ -1100,6 +1101,11 @@ async function downloadTaskResult(item: DeleteBrandResultItem) {
|
||||
}
|
||||
}
|
||||
|
||||
/** 手动刷新:loadHistory 内部已含明细重算与轮询续接,统计卡由列表派生 */
|
||||
async function refreshBoard() {
|
||||
await loadHistory()
|
||||
}
|
||||
|
||||
async function loadHistory() {
|
||||
try {
|
||||
const response = await getDeleteBrandHistory()
|
||||
|
||||
Reference in New Issue
Block a user