Update Step1GraphBuild.vue and Step2EnvSetup.vue with API endpoint notes and enhanced styling

- Added API endpoint notes for simulation creation and preparation in Step1GraphBuild.vue and Step2EnvSetup.vue respectively.
- Updated badge styling for processing state to improve visibility.
- Enhanced the narrative box layout and added a custom checkbox for configuring simulation rounds in Step2EnvSetup.vue.
- Introduced a new section for simulation rounds configuration, including user-defined options and estimated time for completion.
This commit is contained in:
666ghj
2025-12-11 23:55:54 +08:00
parent 5c6a5696d8
commit fdbb0e2dc4
4 changed files with 364 additions and 15 deletions

View File

@@ -145,10 +145,24 @@ const handleGoBack = () => {
}
}
const handleNextStep = () => {
const handleNextStep = (params = {}) => {
addLog('进入 Step 3: 开始模拟')
// TODO: 跳转到 Step 3
alert('Step 3: 开始模拟 - Coming soon...')
// 记录模拟轮数配置
if (params.maxRounds) {
addLog(`自定义模拟轮数: ${params.maxRounds}`)
} else {
addLog('使用自动配置的模拟轮数')
}
// TODO: 调用 startSimulation API 并跳转到 Step 3
// 可以在这里调用 /api/simulation/start 接口
// const startParams = {
// simulation_id: currentSimulationId.value,
// ...(params.maxRounds && { max_rounds: params.maxRounds })
// }
alert(`Step 3: 开始模拟 - Coming soon...\n${params.maxRounds ? `轮数: ${params.maxRounds}` : '使用自动配置轮数'}`)
}
// --- Data Logic ---