From 2ce6364f53a85623c9c2a99e9fcf58d4e8a2530c Mon Sep 17 00:00:00 2001
From: dminyi <1301963064@qq.com>
Date: Sat, 31 Aug 2024 15:33:14 +0800
Subject: [PATCH] 事项详情接口

---
 gz-customerSystem/src/views/register/visit/index.jsx |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/gz-customerSystem/src/views/register/visit/index.jsx b/gz-customerSystem/src/views/register/visit/index.jsx
index 869ad11..aee38fa 100644
--- a/gz-customerSystem/src/views/register/visit/index.jsx
+++ b/gz-customerSystem/src/views/register/visit/index.jsx
@@ -39,7 +39,7 @@
 	const formRef = useRef();
 
 	const [isReview, setIsReview] = useState(false);//预览页面控制
-	const [current, setCurrent] = useState(1);
+	const [current, setCurrent] = useState(2);
 	const [tabsActive, setTabsActive] = useState('1');
 	const [tabsList, setTabList] = useState([
 		{
@@ -50,12 +50,13 @@
 		{
 			img: transfer,
 			label: '流转办理',
-			key: '3',
+			key: '2',
 			isNeedStep: true,//加上这个就有进度条
 		},
 	])
 	const breadcrumbDataMap = {
 		1: { breadcrumbData: [{ title: '工作台' }, { title: '来访登记' }], title: '来访登记' },
+		2: { breadcrumbData: [{ title: '工作台' }, { title: '事件中心' }], title: '办理反馈' },
 		3: { breadcrumbData: [{ title: '工作台' }, { title: '事件中心' }], title: '办理反馈' }
 	}
 
@@ -192,8 +193,12 @@
 					</Fragment>
 				}
 				{
-					current === 3 &&
-					<Tabs defaultActiveTab='1' onChange={(v) => setTabsActive(v)}>
+					(current === 2 || current === 3) &&
+					<Tabs
+						defaultActiveTab='1'
+						onChange={(v) => setTabsActive(v)}
+						className='myTabContent'
+					>
 						{tabsList?.map(item => {
 							return <TabPane
 								key={item.key}
@@ -216,7 +221,7 @@
 										</Steps>
 									</div>
 								}
-								<MattersInfo active={tabsActive} />
+								<MattersInfo active={tabsActive} current={current} />
 							</TabPane>
 						})}
 					</Tabs>

--
Gitblit v1.8.0