From b42b6be06e1029a4c83c122b6a94c9210f26b9e0 Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Wed, 11 Sep 2024 10:07:26 +0800
Subject: [PATCH] fix: 文件材料修复

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

diff --git a/gz-customerSystem/src/views/register/eventFlow/component/AssignedModel.jsx b/gz-customerSystem/src/views/register/eventFlow/component/AssignedModel.jsx
index 870a180..3c4585c 100644
--- a/gz-customerSystem/src/views/register/eventFlow/component/AssignedModel.jsx
+++ b/gz-customerSystem/src/views/register/eventFlow/component/AssignedModel.jsx
@@ -6,6 +6,8 @@
 import SelectObjModal from '@/components/SelectObjModal/selectPerson';
 import { useParams } from 'react-router-dom';
 import * as $$ from '@/utils/utility';
+import { useNavigate } from 'react-router-dom';
+
 
 const FormItem = Form.Item;
 const TextArea = Input.TextArea;
@@ -16,11 +18,12 @@
 }
 
 function delFile(id) {
-  return $$.ax.request({ url: `fileInfo/deleteFileById`, type: 'delete', service: 'sys', data: { id } });
+  return $$.ax.request({ url: `fileInfo/deleteFileById`, type: 'get', service: 'sys', data: { id } });
 }
 
 export default function BackModel(props) {
   const routeData = useParams();
+  const navigate = useNavigate();
   const formRef = useRef();
   const [isModalVisible, setIsModalVisible] = useState(false);
   const [wantUser, setWantUser] = useState({});
@@ -63,7 +66,8 @@
     const res = await assign({ ...data, caseTaskId: props.caseTaskId })
     if (res.type) {
       $$.infoSuccess({ content: '交办成功!' });
-      props.onCancel()
+      props.onCancel();
+      navigate('/mediate/visit/visitWorkBench')
     }
   }
 

--
Gitblit v1.8.0