From 394e04ba31f0822255862033b8dffef17530495c Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Fri, 13 Sep 2024 22:49:01 +0800
Subject: [PATCH] fix: 受理跳转办理页面为空白的bug

---
 gz-customerSystem/src/views/register/visit/component/levelDetail.jsx |   37 ++++---------------------------------
 gz-customerSystem/src/views/register/handleFeedback/index.jsx        |    7 ++++++-
 gz-customerSystem/src/router/router.js                               |    8 ++++----
 3 files changed, 14 insertions(+), 38 deletions(-)

diff --git a/gz-customerSystem/src/router/router.js b/gz-customerSystem/src/router/router.js
index 91eaf7e..b1b9b40 100644
--- a/gz-customerSystem/src/router/router.js
+++ b/gz-customerSystem/src/router/router.js
@@ -217,10 +217,10 @@
 						<Route path="judicialOverview" element={<JudicialOverview />} />
 						{/* 来访登记*/}
 						<Route path="visit/:id?" element={<Visit />} />
-						<Route path="visit/eventFlow/:caseTaskId?/:caseId?" element={<EventFlow />} />
-						<Route path="visit/handleFeedback/:caseTaskId?/:caseId?" element={<HandleFeedback />} />
-						<Route path="visit/fileMessage/:caseTaskId?/:caseId?" element={<FileMessage />} />
-						<Route path="visit/closingReview/:caseTaskId?/:caseId?" element={<ClosingReview />} />
+						<Route path="visit/eventFlow" element={<EventFlow />} />
+						<Route path="visit/handleFeedback" element={<HandleFeedback />} />
+						<Route path="visit/fileMessage" element={<FileMessage />} />
+						<Route path="visit/closingReview" element={<ClosingReview />} />
 						<Route path="visit/visitWorkBench" element={<VisitWorkBench />} />
 
 						{/* 工作流模块 */}
diff --git a/gz-customerSystem/src/views/register/handleFeedback/index.jsx b/gz-customerSystem/src/views/register/handleFeedback/index.jsx
index 14e810a..64d4905 100644
--- a/gz-customerSystem/src/views/register/handleFeedback/index.jsx
+++ b/gz-customerSystem/src/views/register/handleFeedback/index.jsx
@@ -60,6 +60,11 @@
 	const myTab = [
 		{
 			img: Matter,
+			label: '详情',
+			key: "dslxq"
+		},
+		{
+			img: Matter,
 			label: '事项详情',
 			key: "sxxq"
 		},
@@ -147,7 +152,7 @@
 
 	//根据id定义组件
 	const getTypeDom = (key) => {
-		if (key === 'sxxq') {
+		if (key === 'sxxq' || key === 'dslxq') {
 			return <MatterDetail hasApplet={true} hasEditBtn={true} authorData={authorData} caseId={caseId} />
 		}
 		if (key === 'sxbl') {
diff --git a/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx b/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx
index 11e35bd..e62e4b0 100644
--- a/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx
+++ b/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx
@@ -111,40 +111,11 @@
 }
 
 const AiQuestion = ({ visible, onClose, aiData, aiLawData, caseDetailAi }) => {
-    const [list, setList] = useState([
-        // {
-        //     id: '1',
-        //     type: '典型案例',
-        //     name: '唐某某诉重庆某工业有限公司劳动合同纠纷案'
-        // },
-        // {
-        //     id: '2',
-        //     type: '相似案例',
-        //     name: '曾某某诉某网络科技公司劳动争议案'
-        // },
-        // {
-        //     id: '3',
-        //     type: '相似案例',
-        //     name: '曾某某诉某网络科技公司劳动争议案'
-        // },
-    ])
+    const [list, setList] = useState([])
     const [caseDetailView, setCaseDetailView] = useState({})
     const [modalType, setModalType] = useState('case')
     const [lawDetail, setLawDetail] = useState({})
-    const [layerList, setLayerList] = useState([
-        {
-            id: '1',
-            name: '法条一'
-        },
-        {
-            id: '2',
-            name: '法条二'
-        },
-        {
-            id: '3',
-            name: '法条三'
-        },
-    ])
+    const [layerList, setLayerList] = useState([])
 
     const [caseDetail, setCaseDetail] = useState(false)
     const toggleView = (type, id, caseType, name) => {
@@ -208,7 +179,7 @@
                             <div className='marginLeft-title'>相关案例:</div>
                             <div className='aiBox-list'>
                                 {list?.map((item, index) => (
-                                    <div className='aiBox-list-item'>
+                                    <div className='aiBox-list-item' key={item.caseId}>
                                         <div className='aiBox-list-item-type'>{item.caseType === 1 ? '典型案例' : '相似案例'}</div>
                                         <div className='aiBox-list-item-name'>{item.caseName}</div>
                                         <div className='aiBox-list-item-btn' onClick={() => toggleView('case', item.caseId, item.caseType, item.caseName)} >查看</div>
@@ -220,7 +191,7 @@
                             <div className='marginLeft-title'>相关法条:</div>
                             <div className='aiBox-list'>
                                 {layerList?.map((item, index) => (
-                                    <div className='aiBox-list-item'>
+                                    <div className='aiBox-list-item' key={item.lawInfoId}>
                                         <div className='aiBox-list-item-type'>相关法条</div>
                                         <div className='aiBox-list-item-name'>{item.lawTitle}{item.lawIndex}</div>
                                         <div className='aiBox-list-item-btn' onClick={() => toggleView('law', item.lawInfoId)} >查看</div>

--
Gitblit v1.8.0