From a6be73d4391080bf012825bcdd95645e0a89bdcb Mon Sep 17 00:00:00 2001
From: tony.cheng <chengmingwei_1984122@126.com>
Date: Wed, 04 Feb 2026 18:09:49 +0800
Subject: [PATCH] feat: 完善调解平台功能并集成API服务

---
 web-app/src/components/dashboard/MediationProgress.jsx |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/web-app/src/components/dashboard/MediationProgress.jsx b/web-app/src/components/dashboard/MediationProgress.jsx
index 8813ed6..c645804 100644
--- a/web-app/src/components/dashboard/MediationProgress.jsx
+++ b/web-app/src/components/dashboard/MediationProgress.jsx
@@ -1,9 +1,14 @@
 import React from 'react';
+import { useCaseData } from '../../contexts/CaseDataContext';
 
 /**
  * AI调解进度组件 - 步骤条
  */
-const MediationProgress = ({ currentStep = 1 }) => {
+const MediationProgress = () => {
+  const { caseData } = useCaseData();
+  
+  // 从 timeline 获取当前节点,默认为第1步(order_no从1开始)
+  const currentStep = (caseData?.current_node?.order_no || 1) - 1; // order_no从1开始,数组索引从0开始
   const steps = [
     { label: '意愿调查', key: 0 },
     { label: '材料核实', key: 1 },

--
Gitblit v1.8.0