From 899e81654c9389785d58f9dbdf2ea7d2b2bc9082 Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Fri, 13 Sep 2024 14:55:51 +0800
Subject: [PATCH] feat: 对接流程

---
 gz-customerSystem/src/views/register/eventFlow/component/AssignedModel.jsx |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/gz-customerSystem/src/views/register/eventFlow/component/AssignedModel.jsx b/gz-customerSystem/src/views/register/eventFlow/component/AssignedModel.jsx
index f80c4bf..5cc265c 100644
--- a/gz-customerSystem/src/views/register/eventFlow/component/AssignedModel.jsx
+++ b/gz-customerSystem/src/views/register/eventFlow/component/AssignedModel.jsx
@@ -4,7 +4,6 @@
 import ArcoUpload from '@/components/ArcoUpload';
 import { Scrollbars } from "react-custom-scrollbars";
 import SelectObjModal from '@/components/SelectObjModal/selectPerson';
-import { useParams } from 'react-router-dom';
 import * as $$ from '@/utils/utility';
 import { useNavigate } from 'react-router-dom';
 
@@ -22,7 +21,6 @@
 }
 
 export default function BackModel(props) {
-  const routeData = useParams();
   const navigate = useNavigate();
   const formRef = useRef();
   const [isModalVisible, setIsModalVisible] = useState(false);
@@ -38,7 +36,7 @@
     formRef.current.validate(undefined, (errors, values) => {
       if (!errors) {
         handleAssign({
-          caseTaskId: routeData.caseTaskId,
+          caseTaskId: props.caseTaskId,
           assignContent: values.assignContent,
           handleUnitId: wantUser['handleUnit'][0].value,
           handleUnitName: wantUser['handleUnit'][0].name,
@@ -63,7 +61,7 @@
 
   //交办请求
   const handleAssign = async (data) => {
-    const res = await assign({ ...data, caseTaskId: props.caseTaskId })
+    const res = await assign(data)
     if (res.type) {
       $$.infoSuccess({ content: '交办成功!' });
       props.onCancel();

--
Gitblit v1.8.0