From 8617a79951c9c45d60ffdf84d1627062408c131c Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Wed, 11 Sep 2024 12:43:33 +0800
Subject: [PATCH] feat: 办理结果无数据不显示、流转督办可滚动

---
 gz-customerSystem/src/views/register/eventFlow/component/AssignedModel.jsx |   12 ++++++++----
 1 files changed, 8 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 ce47fb4..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({});
@@ -60,10 +63,11 @@
 
   //交办请求
   const handleAssign = async (data) => {
-    const res = await assign(data)
+    const res = await assign({ ...data, caseTaskId: props.caseTaskId })
     if (res.type) {
       $$.infoSuccess({ content: '交办成功!' });
-      props.onCancel()
+      props.onCancel();
+      navigate('/mediate/visit/visitWorkBench')
     }
   }
 
@@ -154,7 +158,7 @@
             <Col span={24} className="doubleFile">
               <ArcoUpload
                 params={{
-                  action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${props.caseId}&ownerId=${routeData.caseTaskId}&ownerType=22_00018-501`,
+                  action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${props.caseId}&ownerId=${props.caseId}&ownerType=22_00018-501`,
                 }}
                 field='file'
                 label='附件材料'

--
Gitblit v1.8.0