x
This commit is contained in:
+6
-2
@@ -189,9 +189,13 @@ async def get_status(task_id: str, db_session: AsyncSession = Depends(get_db_ses
|
|||||||
"geometry_data": geometry_json,
|
"geometry_data": geometry_json,
|
||||||
"detected_features": features_json,
|
"detected_features": features_json,
|
||||||
"design_recommendations": recommendations_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", "分析完成")
|
"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,
|
"error": processing_task.error_message or stp_file.error_message or None,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -992,6 +992,8 @@ const ResultView = {
|
|||||||
console.log('任务数据:', state.task);
|
console.log('任务数据:', state.task);
|
||||||
console.log('key_info:', state.task.key_info);
|
console.log('key_info:', state.task.key_info);
|
||||||
console.log('cavity_data:', state.task.cavity_data);
|
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) {
|
} catch (e) {
|
||||||
state.error = handleApiError(e, '加载任务详情');
|
state.error = handleApiError(e, '加载任务详情');
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user