From 68f41dad70cc9c90b87258d91300576d7f5682e7 Mon Sep 17 00:00:00 2001
From: liuwh <964324856@qq.com>
Date: Sat, 14 Sep 2024 15:58:38 +0800
Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh into master
---
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