From aa9d283706232043fe7c5fbf12c436eabf3c1238 Mon Sep 17 00:00:00 2001 From: sladro Date: Mon, 2 Mar 2026 18:24:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0Revit=E5=88=86?= =?UTF-8?q?=E6=9E=90=E4=BB=AA=E8=A1=A8=E6=9D=BF=E5=92=8C=E6=89=B9=E5=A4=84?= =?UTF-8?q?=E7=90=86=E4=BD=9C=E4=B8=9A=E7=AE=A1=E7=90=86=E5=99=A8=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/pages/BatchJobManager.vue | 55 ++----------------- .../pages/RevitAnalysisDashboard.vue | 15 +---- 2 files changed, 6 insertions(+), 64 deletions(-) diff --git a/src/components/pages/BatchJobManager.vue b/src/components/pages/BatchJobManager.vue index 6378ae9..311d84e 100644 --- a/src/components/pages/BatchJobManager.vue +++ b/src/components/pages/BatchJobManager.vue @@ -18,28 +18,28 @@
-
3
+
0
运行中任务
-
128
+
0
已完成
-
5
+
0
排队中
-
2
+
0
失败/异常
@@ -263,52 +263,7 @@ const taskForm = ref({ const newModelPath = ref('') // 模拟列表数据 - 配合后端的 queued -> dispatching -> waiting_callback -> succeeded/failed 状态 -const jobs = ref([ - { - batchId: 'B-20261001', - strategy: 'creo_shrinkwrap', - priority: '普通', - progress: 40, - status: 'running', - totalCount: 5, - completedCount: 2, - createdAt: '2026-02-26 14:00', - items: [ - { modelPath: 'C:\\Models\\engine_block.prt', status: 'succeeded', errorMessage: '', finishedAt: '2026-02-26 14:05' }, - { modelPath: 'C:\\Models\\gear_box.prt', status: 'failed', errorMessage: '模型几何损坏无法抽取外壳', finishedAt: '2026-02-26 14:10' }, - { modelPath: 'C:\\Models\\shaft.prt', status: 'waiting_callback', errorMessage: '', finishedAt: '-' }, - { modelPath: 'C:\\Models\\bearing.prt', status: 'queued', errorMessage: '', finishedAt: '-' }, - { modelPath: 'C:\\Models\\casing.prt', status: 'queued', errorMessage: '', finishedAt: '-' } - ] - }, - { - batchId: 'B-20261002', - strategy: 'revit_shell', - priority: '高', - progress: 100, - status: 'succeeded', - totalCount: 2, - completedCount: 2, - createdAt: '2026-02-26 10:30', - items: [ - { modelPath: 'D:\\BIM\\A_Tower.rvt', status: 'succeeded', errorMessage: '', finishedAt: '2026-02-26 10:45' }, - { modelPath: 'D:\\BIM\\B_Tower.rvt', status: 'succeeded', errorMessage: '', finishedAt: '2026-02-26 11:00' } - ] - }, - { - batchId: 'B-20261003', - strategy: 'pdms_shrinkwrap', - priority: '低', - progress: 0, - status: 'queued', - totalCount: 1, - completedCount: 0, - createdAt: '2026-02-26 15:20', - items: [ - { modelPath: 'SAM/CATA', status: 'queued', errorMessage: '', finishedAt: '-' } - ] - } -]) +const jobs = ref([]) const filteredJobs = computed(() => { if (statusFilter.value === 'all') return jobs.value diff --git a/src/components/pages/RevitAnalysisDashboard.vue b/src/components/pages/RevitAnalysisDashboard.vue index 06f9ac1..7dff604 100644 --- a/src/components/pages/RevitAnalysisDashboard.vue +++ b/src/components/pages/RevitAnalysisDashboard.vue @@ -220,10 +220,7 @@ {{ isApplyingOptimization ? '正在应用...' : '应用优化' }} - +