From 2c947a24d56801c4c48c5d6ac7c43f1ede04d3d7 Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Thu, 12 Sep 2024 15:39:47 +0800
Subject: [PATCH] feat: 大厅来访完善

---
 gz-customerSystem/src/views/register/eventFlow/component/EventFlow.jsx |   24 +++++++++++++++---------
 1 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/gz-customerSystem/src/views/register/eventFlow/component/EventFlow.jsx b/gz-customerSystem/src/views/register/eventFlow/component/EventFlow.jsx
index 0f4785b..2e7bc9f 100644
--- a/gz-customerSystem/src/views/register/eventFlow/component/EventFlow.jsx
+++ b/gz-customerSystem/src/views/register/eventFlow/component/EventFlow.jsx
@@ -10,12 +10,13 @@
 import MatterDetail from '../../matterDetail';
 import SupervisingView from "../../matterDetail/Supervising";
 import * as $$ from '@/utils/utility';
+import { useNavigate } from 'react-router-dom';
 
 const TabPane = Tabs.TabPane;
 const Step = Steps.Step;
 
-function getListCaseFlow(data) {
-  return $$.ax.request({ url: `caseTask/listCaseFlow`, type: 'get', service: 'mediate', data });
+function getListCaseFlow(caseId) {
+  return $$.ax.request({ url: `caseTask/listCaseFlow?caseId=${caseId}`, type: 'get', service: 'mediate' });
 }
 
 function accept(data) {
@@ -35,8 +36,9 @@
             const res = await accept({
               caseTaskId: props.caseTaskId
             })
-            if(res.type) {
+            if (res.type) {
               $$.infoSuccess({ content: '受理成功!' });
+              navigate('/mediate/visit/visitWorkBench')
             }
           },
         });
@@ -76,6 +78,7 @@
     },
   ]
   const scrollRef = useRef(null)
+  const navigate = useNavigate();
   const [backVisible, setBackVisible] = useState(false)
   const [height, setHeight] = useState(500)
   const [escalationVisible, setEscalationVisible] = useState(false)
@@ -120,13 +123,16 @@
 
   //获取流程信息
   const getData = async () => {
-    const res = await getListCaseFlow({
-      caseId: props.caseId
-    })
+    const res = await getListCaseFlow(
+      props.caseId
+    )
     if (res.type) {
       setProgressData(res.data)
     }
   }
+
+
+
 
   return (
     <Fragment>
@@ -148,7 +154,7 @@
           autoHide
         >
           <MatterDetail caseId={props.caseId} />
-          <div className='dataSync-hasTabPage' style={{ marginTop: '-8px' }}>
+          <div className='dataSync-hasTabPage' style={{ marginTop: '-8px', paddingBottom: '64px' }}>
             <Tabs defaultActiveTab='1' >
               <TabPane
                 key='1'
@@ -209,7 +215,7 @@
           autoFocus={false}
           focusLock={false}
         >
-          <AssignedModel caseId={props.caseId} onCancel={() => { setAssignedVisible(false) }} />
+          <AssignedModel caseId={props.caseId} caseTaskId={props.caseTaskId} onCancel={() => { setAssignedVisible(false) }} />
         </Modal>
         <div className="dataSync-excel">
           <Space size="large" style={{ margin: '4px 14px' }}>
@@ -217,7 +223,7 @@
               const { label, key, click, ...rest } = item;
               return <Button key={key} onClick={click} {...rest} >{label}</Button>
             })}
-            <Button type='secondary' >返回上级页面</Button>
+            <Button type='secondary'  onClick={() => navigate(-1)}>返回上级页面</Button>
           </Space>
         </div>
       </div>

--
Gitblit v1.8.0