diff --git a/wwwroot/api/task_io.dspy b/wwwroot/api/task_io.dspy index f4b01a1..8eabcab 100644 --- a/wwwroot/api/task_io.dspy +++ b/wwwroot/api/task_io.dspy @@ -21,6 +21,7 @@ _state_colors = { 'rejected': '#dc2626', 'paused': '#f0a040', 'cancelled': '#64748b', 'qc_review': '#8b5cf6', + 'qc_rejected': '#dc2626', } if not task_id: @@ -127,7 +128,7 @@ async with DBPools().sqlorContext(dbname) as sor: # 5 秒刷新:仅非终态任务刷新。终态(completed/approved/failed/rejected/cancelled)不再变化, # 切到终态任务时清除定时器;非终态任务设置定时器。params.state 由 binds.params 传入 script。 refresh_script = ( - "var _term=['completed','approved','failed','rejected','cancelled'];" + "var _term=['completed','approved','failed','rejected','cancelled','qc_rejected'];" "if(_term.indexOf(params.state)>=0){" "if(window._task_io_timer){clearInterval(window._task_io_timer);window._task_io_timer=null;}" "}else if(!window._task_io_timer){"