From 91bcbd5cf8ab3d63a5de1d72accfab6dfa5761eb Mon Sep 17 00:00:00 2001 From: liuwh <964324856@qq.com> Date: Tue, 10 Sep 2024 10:35:43 +0800 Subject: [PATCH] 小程序修改 --- gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx b/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx index 3462a50..f5c29ad 100644 --- a/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx +++ b/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx @@ -2,7 +2,7 @@ * @Author: dminyi 1301963064@qq.com * @Date: 2024-09-02 14:49:13 * @LastEditors: dminyi 1301963064@qq.com - * @LastEditTime: 2024-09-08 18:25:54 + * @LastEditTime: 2024-09-09 22:14:40 * @FilePath: \gzDyh\gz-customerSystem\src\views\register\handleFeedback\component\CaseResult.jsx * @Description: 结案申请 */ @@ -26,7 +26,7 @@ -const CaseResult = ({ visible = false, handleOnCancel, caseResultId, caseId }) => { +const CaseResult = ({ visible = false, handleOnCancel, caseResultId, caseId ,caseTaskId}) => { const formRef = useRef(); const formRefWrite = useRef(); const failRef = useRef(); @@ -38,7 +38,6 @@ const [noHandleReason, setNoHandleReason] = useState(false); const [radioValue, setRadioValue] = useState(1); const [mode, setMode] = useState(false) - const [visibleType, setVisibleType] = useState(false) const tabs = [ { index: '1', label: '化解成功' }, @@ -112,19 +111,30 @@ const windupApply = async (submitData) => { const res = await windupApplyApi({ - caseResultId: caseResultId, + caseTaskId: caseTaskId, + caseId:caseId, + caseResultId:caseResultId, ...submitData }) if (res.type) { $$.infoSuccess({ content: '提交成功' }); - setVisibleType(false) + handleOnCancel() } } return ( <> - <Modal visible={visibleType || visible} onCancel={handleOnCancel} title='申请结案' centered footer={null} style={{ overflow: 'auto' }}> + <Modal + visible={visible} + onCancel={handleOnCancel} + title='申请结案' + centered + footer={null} + style={{ overflow: 'auto' }} + unmountOnExit={true} + maskClosable={false} + > <div className='caseResult-title'>化解结果</div> <div className='caseResult-tabs'> {tabs.map((tab) => ( -- Gitblit v1.8.0