From a727453e95bcf4545b277ef877655f29de50263a Mon Sep 17 00:00:00 2001 From: SZCJW <792430652@qq.com> Date: Sat, 7 Mar 2026 00:40:57 +0800 Subject: [PATCH] x --- src/api/routes.py | 8 ++++++-- static/vue-app.js | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/api/routes.py b/src/api/routes.py index b94026e..9cac3f1 100644 --- a/src/api/routes.py +++ b/src/api/routes.py @@ -189,9 +189,13 @@ async def get_status(task_id: str, db_session: AsyncSession = Depends(get_db_ses "geometry_data": geometry_json, "detected_features": features_json, "design_recommendations": recommendations_json, - "quality_metrics": file_with_data.get("analysis_metrics", {}) or {}, + "quality_metrics": { + "volume_utilization": file_with_data.get("analysis_metrics", {}).get("volume_utilization", 0), + "topology_complexity": file_with_data.get("analysis_metrics", {}).get("topology_complexity", 0), + "wall_uniformity": file_with_data.get("analysis_metrics", {}).get("wall_uniformity", 0) + }, "analysis_summary": file_with_data.get("analysis_metrics", {}).get("analysis_summary", "分析完成") - } if features_json or recommendations_json else None, + } if geometry_json or features_json or recommendations_json else None, "error": processing_task.error_message or stp_file.error_message or None, } diff --git a/static/vue-app.js b/static/vue-app.js index db2444a..4ac19c6 100644 --- a/static/vue-app.js +++ b/static/vue-app.js @@ -992,6 +992,8 @@ const ResultView = { console.log('任务数据:', state.task); console.log('key_info:', state.task.key_info); console.log('cavity_data:', state.task.cavity_data); + console.log('analysis_result:', state.task.analysis_result); + console.log('geometry_data:', state.task.geometry_data); } catch (e) { state.error = handleApiError(e, '加载任务详情'); } finally {