fix(dsh): reconcile orphan schedules and preserve audit evidence
This commit is contained in:
1 parent
4aaebcb65a
commit
282252a5fb
16 files changed
+578
-27
No files matched your search
@@ -154,12 +154,15 @@ window.__ModuleLoader__.load({id:'@dx/dsh-task',factory:require=>{
|
||||
actions(button('dx-schedule-new','为当前任务设置排期',()=>perform({operation:'schedule_dialog',task_ids:scope}),pending||!scope.length),
|
||||
button('dx-schedules-refresh','刷新排期',()=>perform({operation:'refresh'}),pending)),
|
||||
empty('时间按本机时区显示。排期在工具打开期间检查,执行前仍需核对保存范围与实际预检。'),
|
||||
operations.schedule_audit?.status==='ok'&&empty(`排期审计:近期 ${operations.schedule_audit.live_events} 条,已归档 ${operations.schedule_audit.archived_events} 条;旧记录完整保留在本地审计归档。`),
|
||||
operations.schedule_audit?.status==='unavailable'&&empty('排期审计归档不可用,请保留现有记录并核对本地归档。'),
|
||||
...(operations.schedules||[]).map(row=>card(row.schedule_id,row.title||'任务排期',
|
||||
detail('状态',status(row.status)),detail('优先级',priorities[row.priority]||display(row.priority)),detail('不早于',time(row.not_before)),
|
||||
detail('截止时间',time(row.due_at)),detail('任务',(row.task_ids||[]).join(' → ')),detail('依赖',(row.dependencies||[]).join('、')||'无'),
|
||||
detail('执行方式',row.auto_start?'已保存自动启动意图,依原生授权与预检执行':'等待手动确认'),
|
||||
blockerList(row.blockers),actions(
|
||||
button('dx-schedule-run-'+row.schedule_id,'核对并执行',()=>perform({operation:'run_schedule',schedule_id:row.schedule_id}),pending||row.ready!==true),
|
||||
row.status==='claimed'&&button('dx-schedule-reconcile-'+row.schedule_id,'核对并收尾失联排期',()=>perform({operation:'reconcile_schedule',schedule_id:row.schedule_id}),pending),
|
||||
button('dx-schedule-cancel-'+row.schedule_id,'取消排期',()=>perform({operation:'cancel_schedule',schedule_id:row.schedule_id}),pending||row.status!=='pending')))),
|
||||
!operations.schedules?.length&&empty('暂无排期。'),
|
||||
...(operations.schedule_events||[]).slice(0,10).map(row=>card('schedule-event-'+row.sequence,
|
||||
|
||||
Reference in new issue
Block a user