feat(rohs-check): 增强 RoHS 检核工具进度展示,新增判定统计与当前步骤信息

This commit is contained in:
hugo committed 2026-06-11 11:47:07 +08:00
1 parent b82f31af8f
commit ee39270069
9 files changed
+349 -11

No files matched your search

@@ -339,11 +339,13 @@ def run_task_now(task: ScheduleTask, *, trigger_type: str, triggered_by_user_id:
run.failed_count = failed_count
run.skipped_count = skipped_count
run.step_logs = step_logs if step_logs else None
run.response_summary_json = {
response_summary = dict(run.response_summary_json or {})
response_summary.update({
"errors": errors[:20],
"schedule_type": task.schedule_type,
"platform_api_path": task.platform_api_path,
}
})
run.response_summary_json = response_summary
run.error_message = "; ".join(errors[:3]) if errors else None
run.excel_file_data = file_data
run.excel_file_name = file_name