From 126d818da70a1711223d22217a3d7a88a8570988 Mon Sep 17 00:00:00 2001 From: zhangyongtian <1181606322@qq.com> Date: Sun, 15 Sep 2024 17:45:34 +0800 Subject: [PATCH] fix: 结案申请bug修改 --- gz-customerSystem/src/views/register/eventFlow/component/EscalationModel.jsx | 37 +++++++++++++++++++------------------ 1 files changed, 19 insertions(+), 18 deletions(-) diff --git a/gz-customerSystem/src/views/register/eventFlow/component/EscalationModel.jsx b/gz-customerSystem/src/views/register/eventFlow/component/EscalationModel.jsx index 6e3fc4b..1bb57d2 100644 --- a/gz-customerSystem/src/views/register/eventFlow/component/EscalationModel.jsx +++ b/gz-customerSystem/src/views/register/eventFlow/component/EscalationModel.jsx @@ -5,6 +5,7 @@ import { Scrollbars } from "react-custom-scrollbars"; import { escalation } from '@/assets/images/icon'; import * as $$ from '@/utils/utility'; +import { useNavigate } from 'react-router-dom'; const FormItem = Form.Item; const TextArea = Input.TextArea; @@ -27,6 +28,7 @@ } export default function BackModel(props) { + const navigate = useNavigate(); const formRef = useRef(); const [id, setId] = useState(); const [unitData, setUnitData] = useState({}); @@ -56,21 +58,19 @@ } const handleSubmit = () => { - formRef.current.validate(undefined, (errors, values) => { - if (formRef.current) { - formRef.current.validate(undefined, (errors, values) => { - if (!errors) { - handleEscala({ - id, - caseId: props.caseId, - caseTaskId: props.caseTaskId, - returnContent: values.returnContent, - ...unitData - }) - } - }) - } - }) + if (formRef.current) { + formRef.current.validate(undefined, (errors, values) => { + if (!errors) { + handleEscala({ + id, + caseId: props.caseId, + caseTaskId: props.caseTaskId, + appearContent: values.appearContent, + ...unitData + }) + } + }) + } } const handleTemplate = (type) => { @@ -87,6 +87,7 @@ if (res.type) { $$.infoSuccess({ content: '提交申请成功!' }); props.onCancel() + navigate('/mediate/visit/visitWorkBench') } } @@ -113,10 +114,10 @@ <Col span={24}> <FormItem label='上报至' - field='trueName' + field='name' > <div className='myTag' > - <img src={escalation} alt="" className="title-file" />白云区综治中心 + <img src={escalation} alt="" className="title-file" />{unitData.auditUnitName} </div> </FormItem> </Col> @@ -127,7 +128,7 @@ </div> <FormItem label={(<div style={{ display: 'flex' }}>上报意见<div className="must">必填</div></div>)} - field='returnContent' + field='appearContent' rules={[{ required: true, message: '请选择回退理由' }]} > <TextArea -- Gitblit v1.8.0