From d76a1099cbdaf445722089382d56aa617cf11240 Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Sun, 08 Sep 2024 22:59:45 +0800
Subject: [PATCH] fix: 结案申请弹窗bug

---
 gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 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..e426f52 100644
--- a/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx
+++ b/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx
@@ -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: '化解成功' },
@@ -117,14 +116,23 @@
     })
     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