From 653917eab3c5ca61830c9c8eded4ca4a0fa4a854 Mon Sep 17 00:00:00 2001 From: sladro Date: Wed, 17 Sep 2025 13:37:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=9E=E7=8E=B0Creo=E5=87=A0?= =?UTF-8?q?=E4=BD=95=E5=A4=8D=E6=9D=82=E5=BA=A6=E5=88=86=E6=9E=90=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E9=A1=B5=E9=9D=A2UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 完全照抄参考项目的几何复杂度分析UI设计 - 实现分析摘要、零件列表表格、选择删除功能界面 - 添加几何复杂度专用CSS变量到theme.css统一管理 - 使用模拟数据展示6个零件的复杂度分析结果 - 支持全选/清空、复杂度等级颜色标识功能 - 完全复用现有系统CSS变量,保持主题一致性 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/assets/styles/theme.css | 11 + .../pages/GeometryComplexityResult.vue | 594 +++++++++++++++++- 2 files changed, 585 insertions(+), 20 deletions(-) diff --git a/src/assets/styles/theme.css b/src/assets/styles/theme.css index 785f063..c5b53dd 100644 --- a/src/assets/styles/theme.css +++ b/src/assets/styles/theme.css @@ -77,6 +77,17 @@ --color-text-red: rgb(255, 0, 0); --color-text-blue: rgb(0, 100, 200); + /* 几何复杂度分析主题色 */ + --color-complexity-base: 255, 140, 0; /* #FF8C00 */ + --color-complexity: rgb(var(--color-complexity-base)); + --color-complexity-bg-1: rgba(var(--color-complexity-base), 0.05); + --color-complexity-bg-2: rgba(var(--color-complexity-base), 0.08); + --color-complexity-bg-3: rgba(var(--color-complexity-base), 0.1); + --color-complexity-border-1: rgba(var(--color-complexity-base), 0.1); + --color-complexity-border-2: rgba(var(--color-complexity-base), 0.2); + --color-complexity-border-3: rgba(var(--color-complexity-base), 0.3); + --color-complexity-border-15: rgba(var(--color-complexity-base), 0.15); + /* ===== 优化透明度层级系统 ===== */ /* 主色调透明度变体 */ diff --git a/src/components/pages/GeometryComplexityResult.vue b/src/components/pages/GeometryComplexityResult.vue index 15b4db8..5f52c9b 100644 --- a/src/components/pages/GeometryComplexityResult.vue +++ b/src/components/pages/GeometryComplexityResult.vue @@ -9,22 +9,301 @@
-
-
- + +
+
+

分析摘要

+
+ + 完成时间: {{ analysisTime }} +
-

分析结果页面

-

此页面将展示几何复杂度分析的结果

+ +
+
+
{{ mockData.length }}
+
总零件数
+
+
+
{{ averageComplexity }}
+
平均复杂度
+
+
+
{{ selectedParts.size }}
+
已选择零件
+
+
+
{{ highComplexityCount }}
+
高复杂度零件
+
+
+
+ + +
+
+

+ + 几何复杂度分析结果 ({{ mockData.length }} 个零件) +

+
+ + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
选择ID零件名称表面数特征数曲面数孔数圆角数复杂度得分体积 (mm³)
+ + {{ index + 1 }} +
+ {{ part.part_name }} +
{{ part.part_path }}
+
{{ part.file_size }}
+
+
{{ part.surface_count }}{{ part.feature_count }}{{ part.curved_surface_count }}{{ part.hole_count }}{{ part.fillet_count }} + + {{ part.complexity_score.toFixed(2) }} + + {{ formatVolume(part.volume) }}
+
+
+ + +
+
+

+ + 删除操作 +

+
+ 已选择: {{ selectedParts.size }} 个零件 +
+
+ +
+

选中的零件将从模型中删除。请仔细检查选择的零件,删除操作无法撤销。

+
+ +
\ No newline at end of file