| | |
| | | } |
| | | |
| | | 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) => { |
| | |
| | | <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> |
| | |
| | | <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> |