feat: task_io状态颜色/终态列表补qc_rejected
This commit is contained in:
parent
624a820417
commit
6ae036217f
@ -21,6 +21,7 @@ _state_colors = {
|
|||||||
'rejected': '#dc2626',
|
'rejected': '#dc2626',
|
||||||
'paused': '#f0a040',
|
'paused': '#f0a040',
|
||||||
'cancelled': '#64748b', 'qc_review': '#8b5cf6',
|
'cancelled': '#64748b', 'qc_review': '#8b5cf6',
|
||||||
|
'qc_rejected': '#dc2626',
|
||||||
}
|
}
|
||||||
|
|
||||||
if not task_id:
|
if not task_id:
|
||||||
@ -127,7 +128,7 @@ async with DBPools().sqlorContext(dbname) as sor:
|
|||||||
# 5 秒刷新:仅非终态任务刷新。终态(completed/approved/failed/rejected/cancelled)不再变化,
|
# 5 秒刷新:仅非终态任务刷新。终态(completed/approved/failed/rejected/cancelled)不再变化,
|
||||||
# 切到终态任务时清除定时器;非终态任务设置定时器。params.state 由 binds.params 传入 script。
|
# 切到终态任务时清除定时器;非终态任务设置定时器。params.state 由 binds.params 传入 script。
|
||||||
refresh_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(_term.indexOf(params.state)>=0){"
|
||||||
"if(window._task_io_timer){clearInterval(window._task_io_timer);window._task_io_timer=null;}"
|
"if(window._task_io_timer){clearInterval(window._task_io_timer);window._task_io_timer=null;}"
|
||||||
"}else if(!window._task_io_timer){"
|
"}else if(!window._task_io_timer){"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user