From fc3422d53b7e948d84ac15d60705ecd096c7adb2 Mon Sep 17 00:00:00 2001 From: liuwh <964324856@qq.com> Date: Tue, 10 Sep 2024 18:27:48 +0800 Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh into master --- gz-customerSystem/src/views/register/eventFlow/component/AssignedModel.jsx | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/gz-customerSystem/src/views/register/eventFlow/component/AssignedModel.jsx b/gz-customerSystem/src/views/register/eventFlow/component/AssignedModel.jsx index c6e8e7a..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; @@ -21,6 +23,7 @@ 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