From b731548e050c727c4e05db660dfb64eabc94dbdd Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Fri, 13 Sep 2024 16:35:46 +0800
Subject: [PATCH] fix: bug修改

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

diff --git a/gz-customerSystem/src/views/register/eventFlow/component/BackModel.jsx b/gz-customerSystem/src/views/register/eventFlow/component/BackModel.jsx
index 66f9761..5eae568 100644
--- a/gz-customerSystem/src/views/register/eventFlow/component/BackModel.jsx
+++ b/gz-customerSystem/src/views/register/eventFlow/component/BackModel.jsx
@@ -4,6 +4,7 @@
 import ArcoUpload from '@/components/ArcoUpload';
 import { Scrollbars } from "react-custom-scrollbars";
 import * as $$ from '@/utils/utility';
+import { useNavigate } from 'react-router-dom';
 
 const RadioGroup = Radio.Group;
 const FormItem = Form.Item;
@@ -15,7 +16,7 @@
 }
 
 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 } });
 }
 
 function returnApply(data) {
@@ -23,6 +24,7 @@
 }
 
 export default function BackModel(props) {
+  const navigate = useNavigate();
   const formRef = useRef();
   const [id, setId] = useState();
   const options = [
@@ -67,6 +69,7 @@
           handleReturn({
             id,
             caseId: props.caseId,
+            caseTaskId: props.caseTaskId,
             returnContent: values.returnContent
           })
         }
@@ -88,6 +91,7 @@
     if (res.type) {
       $$.infoSuccess({ content: '提交申请成功!' });
       props.onCancel()
+      navigate('/mediate/visit/visitWorkBench')
     }
   }
 

--
Gitblit v1.8.0