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 ++++---------------------------------
 1 files changed, 4 insertions(+), 33 deletions(-)

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