feat: task_io状态颜色/终态列表补qc_rejected

This commit is contained in:
ymq 2026-09-03 17:31:38 +08:00
parent 624a820417
commit 6ae036217f

View File

@ -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){"