From 01d94f3d21365a6915d03d8a88e44c55a6945f82 Mon Sep 17 00:00:00 2001 From: 666ghj <670939375@qq.com> Date: Thu, 11 Dec 2025 17:02:17 +0800 Subject: [PATCH] Update simulation components and descriptions for clarity and functionality - Added a new method in simulation.js for retrieving detailed run status. - Revised descriptions in Step1GraphBuild.vue and Step2EnvSetup.vue for improved clarity on simulation processes. - Updated titles and labels in Step2EnvSetup.vue to better reflect the initialization and setup stages. - Enhanced styling and layout in Step2EnvSetup.vue for a more cohesive user experience. - Adjusted descriptions in Home.vue to accurately represent the simulation workflow. --- frontend/src/api/simulation.js | 1 + frontend/src/components/Step1GraphBuild.vue | 2 +- frontend/src/components/Step2EnvSetup.vue | 137 ++++++++++++-------- frontend/src/views/Home.vue | 2 +- frontend/src/views/SimulationView.vue | 1 + 5 files changed, 88 insertions(+), 55 deletions(-) diff --git a/frontend/src/api/simulation.js b/frontend/src/api/simulation.js index 2b32fa8..90a495b 100644 --- a/frontend/src/api/simulation.js +++ b/frontend/src/api/simulation.js @@ -98,3 +98,4 @@ export const getRunStatus = (simulationId) => { export const getRunStatusDetail = (simulationId) => { return service.get(`/api/simulation/${simulationId}/run-status/detail`) } + diff --git a/frontend/src/components/Step1GraphBuild.vue b/frontend/src/components/Step1GraphBuild.vue index 9629410..0e1ad49 100644 --- a/frontend/src/components/Step1GraphBuild.vue +++ b/frontend/src/components/Step1GraphBuild.vue @@ -18,7 +18,7 @@

POST /api/graph/ontology/generate

- LLM分析文档内容与模拟需求,梳理出现实种子,自动生成合适的本体结构 + LLM分析文档内容与模拟需求,提取出现实种子,自动生成合适的本体结构

diff --git a/frontend/src/components/Step2EnvSetup.vue b/frontend/src/components/Step2EnvSetup.vue index affa54a..0bb0a36 100644 --- a/frontend/src/components/Step2EnvSetup.vue +++ b/frontend/src/components/Step2EnvSetup.vue @@ -6,7 +6,7 @@
01 - 模拟实例 + 模拟实例初始化
已完成 @@ -17,17 +17,25 @@

POST /api/simulation/create

- 基于已构建的知识图谱创建模拟实例,初始化模拟环境 + 新建simulation实例,拉取模拟世界参数模版

+
+ Project ID + {{ projectData?.project_id }} +
+
+ Graph ID + {{ projectData?.graph_id }} +
Simulation ID {{ simulationId }}
- Graph ID - {{ projectData?.graph_id }} + Task ID + {{ taskId || '异步任务已完成' }}
@@ -154,19 +162,19 @@
-
+
04 准备完成
- 就绪 + 进行中
- +
-

模拟环境已准备就绪,可以开始运行模拟

+

模拟环境已准备完成,可以开始运行模拟

diff --git a/frontend/src/views/SimulationView.vue b/frontend/src/views/SimulationView.vue index 9c3e2bf..db567a2 100644 --- a/frontend/src/views/SimulationView.vue +++ b/frontend/src/views/SimulationView.vue @@ -336,3 +336,4 @@ onMounted(() => { border-right: 1px solid #EAEAEA; } +