From d2280c384e4b8f6acef1e01f400e3c61c97d82d9 Mon Sep 17 00:00:00 2001
From: dminyi <1301963064@qq.com>
Date: Sat, 07 Sep 2024 16:56:54 +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 |  140 ++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 134 insertions(+), 6 deletions(-)

diff --git a/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx b/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx
index 4e10275..14556eb 100644
--- a/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx
+++ b/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx
@@ -2,12 +2,14 @@
  * @Author: dminyi 1301963064@qq.com
  * @Date: 2024-08-27 16:47:12
  * @LastEditors: dminyi 1301963064@qq.com
- * @LastEditTime: 2024-09-03 14:35:13
+ * @LastEditTime: 2024-09-07 15:35:53
  * @FilePath: \gzDyh\gz-customerSystem\src\views\register\visit\component\levelDetail.jsx
  * @Description: 右抽屉提示
  */
-import React from 'react';
+import React, { useState } from 'react';
 import MyDrawer from '@/components/MyDrawer';
+import { caselogo } from '@/assets/images';
+
 
 const EventLevelDrawer = ({ visible, onClose }) => {
     return (
@@ -22,7 +24,7 @@
         >
             <div style={{ marginTop: '-8px' }}>
                 <div>
-                    <div style={{ color: '#1A6FB8', fontSize: '15px', lineHeight: '23px', marginBottom: '8px' }}>一类重点事件</div>
+                    <div style={{ color: '#1A6FB8', fontSize: '15px', lineHeight: '23px', marginBottom: '8px' }}>一级重点事件</div>
                     1、5人(含5人)以上到非接待场所聚集、滞留、静坐、游行或准备上访;<br />
                     2、拉横幅、穿着“状衣”、呼喊口号、呼喊标语、堵塞交通非法占据公其场所、扰乱公共秩序、向他人散发传单等上访材料;<br />
                     3、拖欠工资、劳资纠纷涉及人数5人以上;<br />
@@ -32,7 +34,7 @@
                     7、群体性民事纠纷(5人及5人以上的邻里矛盾纠纷、经济债务纠纷、家庭纠纷等可能导致“民转刑”的民事纠纷);8、存在重大安全隐患、重大不稳定因索的矛盾;9、涉及政治类,非宗教类的非访宣传(在出租屋内从事涉邪教迷信印刷、存放资料的;在公共场所粘贴类似邪教的符号、图案、标志等)10、县(市、区)职能部门、各镇(街道)分管领导根据应急情况认为有必要启动红色预警机制的其他矛盾纠纷。
                 </div>
                 <div>
-                    <div style={{ color: '#1A6FB8', fontSize: '15px', lineHeight: '23px', marginBottom: '8px', marginTop: '20px' }}>二类重点事件</div>
+                    <div style={{ color: '#1A6FB8', fontSize: '15px', lineHeight: '23px', marginBottom: '8px', marginTop: '20px' }}>二级重点事件</div>
                     1、5人(含5人)以上到非接待场所聚集、滞留、静坐、游行或准备上访;<br />
                     2、拉横幅、穿着“状衣”、呼喊口号、呼喊标语、堵塞交通非法占据公其场所、扰乱公共秩序、向他人散发传单等上访材料;<br />
                     3、拖欠工资、劳资纠纷涉及人数5人以上;<br />
@@ -42,7 +44,7 @@
                     7、群体性民事纠纷(5人及5人以上的邻里矛盾纠纷、经济债务纠纷、家庭纠纷等可能导致“民转刑”的民事纠纷);8、存在重大安全隐患、重大不稳定因索的矛盾;9、涉及政治类,非宗教类的非访宣传(在出租屋内从事涉邪教迷信印刷、存放资料的;在公共场所粘贴类似邪教的符号、图案、标志等)10、县(市、区)职能部门、各镇(街道)分管领导根据应急情况认为有必要启动红色预警机制的其他矛盾纠纷。
                 </div>
                 <div>
-                    <div style={{ color: '#1A6FB8', fontSize: '15px', lineHeight: '23px', marginBottom: '8px', marginTop: '20px' }}>三类普通事件</div>
+                    <div style={{ color: '#1A6FB8', fontSize: '15px', lineHeight: '23px', marginBottom: '8px', marginTop: '20px' }}>三级普通事件</div>
                     1、5人(含5人)以上到非接待场所聚集、滞留、静坐、游行或准备上访;<br />
                     2、拉横幅、穿着“状衣”、呼喊口号、呼喊标语、堵塞交通非法占据公其场所、扰乱公共秩序、向他人散发传单等上访材料;<br />
                     3、拖欠工资、劳资纠纷涉及人数5人以上;<br />
@@ -102,6 +104,132 @@
 
 }
 
+const AiQuestion = ({ visible, onClose }) => {
+    const [list, setList] = useState([
+        {
+            id: '1',
+            type: '典型案例',
+            name: '唐某某诉重庆某工业有限公司劳动合同纠纷案'
+        },
+        {
+            id: '2',
+            type: '相似案例',
+            name: '曾某某诉某网络科技公司劳动争议案'
+        },
+        {
+            id: '3',
+            type: '相似案例',
+            name: '曾某某诉某网络科技公司劳动争议案'
+        },
+    ])
+
+    const [layerList, setLayerList] = useState([
+        {
+            id: '1',
+            name: '法条一'
+        },
+        {
+            id: '2',
+            name: '法条二'
+        },
+        {
+            id: '3',
+            name: '法条三'
+        },
+    ])
+
+    const [caseDetail,setCaseDetail] = useState(false)
+    const toggleView = (id) => {
+        console.log(id, 'iddddddd')
+        setCaseDetail(true)
+        aiCaseDetail(id)
+    };
+
+    const caseDetailOnClose = () => {
+        setCaseDetail(false)
+    }
+
+    const aiCaseDetail = () => {
+    
+    }
 
 
-export { EventLevelDrawer, MattersDetail, NoHandleReason };
\ No newline at end of file
+
+    return (
+        <>
+            <MyDrawer
+                visible={visible}
+                onClose={onClose}
+                title="智能调解助理"
+                width={1000}
+                style={{ position: 'absolute' }}
+                bodyStyle={{ marginTop: '-8px' }}
+                titleBefore={true}
+            >
+                <div style={{ display: 'flex' }}>
+                    <div style={{ width: '100px' }}></div>
+                    <div className='aiBox'>
+                        <div className='aiBox-case'>
+                            <div className='aiBox-case-logo'>
+                                <img src={caselogo} alt='' className='aiBox-case-logo-img' />
+                            </div>
+                            <div style={{ flex: 1 }}>刘家健入职吴昆物流公司工作6天,因不适应工作内容、环境等,向吴昆物流公司提出离职申请,但公司称入职1周内因个人原因辞职不予支付工资。刘家健因此向社区调委会申请调解。刘家健希望吴昆物流公司支付6天的工资。经调解,双方达成一致意见,吴昆物流公司同意支付刘家健6天的工资共计1575元。基于这个案件生成合理的调解策略.</div>
+                        </div>
+                        <div className='marginLeft'>
+                            <div className='marginLeft-title'>相关案例:</div>
+                            <div className='aiBox-list'>
+                                {list?.map((item, index) => (
+                                    <div className='aiBox-list-item'>
+                                        <div className='aiBox-list-item-type'>{item.type}</div>
+                                        <div className='aiBox-list-item-name'>{item.name}</div>
+                                        <div className='aiBox-list-item-btn' onClick={() => toggleView(item.id)}>查看</div>
+                                    </div>
+                                ))}
+                            </div>
+
+
+                        </div>
+                        <div className='marginLeft'>
+                            <div className='marginLeft-title'>相关法条:</div>
+                            <div className='aiBox-list'>
+                                {layerList?.map((item, index) => (
+                                    <div className='aiBox-list-item'>
+                                        <div className='aiBox-list-item-type'>相关法条</div>
+                                        <div className='aiBox-list-item-name'>{item.name}</div>
+                                        <div className='aiBox-list-item-btn' onClick={() => toggleView(item.id)}>查看</div>
+                                    </div>
+                                ))}
+                            </div>
+                        </div>
+
+                    </div>
+                </div>
+            </MyDrawer>
+            <div className='MyDrawer'>
+            <MyDrawer
+                visible={caseDetail}
+                onClose={caseDetailOnClose}
+                title="查看相关案例"
+                width={400}
+                style={{ position: 'absolute' }}
+                bodyStyle={{ marginTop: '-8px' }}
+                titleBefore={true}
+            >
+                <div className='layerDetail'>
+                    <div className='layerDetail-title'>参考案例</div>
+                    <div className='layerDetail-name'>唐某某诉重庆某工业有限公司劳动合同纠纷案</div>
+                    <div className='layerDetail-littleTitle'>智能摘要</div>
+                    <div className='layerDetail-content'>法院生效裁判认为,本案是肖某某要求某工业公司支付经济补偿金,原审法院已经确认某工业公司存在未足额支付肖某某工资、未休年休假工资情形,故依照《中华人民共和国劳动合同法》(以下简称劳动合同法)第三十八条第一款的规定,某工业公司应当支付解除合同的经济补偿金。</div>
+                </div>
+            </MyDrawer>
+
+        </div>
+
+        </>
+
+    )
+}
+
+
+
+export { EventLevelDrawer, MattersDetail, NoHandleReason, AiQuestion };
\ No newline at end of file

--
Gitblit v1.8.0