From 9f705a54328c4b59ad9566c521bc6e0e7577acb3 Mon Sep 17 00:00:00 2001 From: liuwh <964324856@qq.com> Date: Fri, 13 Sep 2024 19:10:30 +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, 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