From e7e6c4618860aa0899ffb00c5eb892df1ac895eb Mon Sep 17 00:00:00 2001
From: liuwh <964324856@qq.com>
Date: Thu, 22 Aug 2024 08:35:34 +0800
Subject: [PATCH] 小程序复制

---
 gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx b/gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx
index fd3929a..432d9bd 100644
--- a/gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx
+++ b/gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx
@@ -352,9 +352,9 @@
     return `${year}-${month}-${day} ${hours}:${minutes}`;
   }
 
-  //添加申请人: 0、被申请人: 1、代理人: 2
+  //添加申请人: 0、被申请人: 1、申请代理人: 2、被申请代理人:3
   const handleAdd = (type) => {
-    if (type === 2) {
+    if (type === 2 || type === 3) {
       setAgentVisible(true)
     } else {
       setAddVisabled(true)
@@ -700,9 +700,11 @@
 
       </Modal>
       <Modal style={{ width: '1200px' }} visible={filesCheck} onCancel={() => setFilesCheck(false)} footer={null} title='查看事件材料' centered>
-        <div className="mediationWindow-modal-main" style={{ display: 'flex' }}>
+        {/* <div className="mediationWindow-modal-main" style={{ display: 'flex' }}> */}
+        <div style={{marginTop:'-16px'}}>
           <NewFileCheck />
         </div>
+        {/* </div> */}
       </Modal>
       <Modal
         title={'添加' + peopleMap[dialogType]}
@@ -727,11 +729,14 @@
         autoFocus={false}
         focusLock={true}
         footer={null}
+        unmountOnExit={true}
+        maskClosable={false}
       >
         <AgentDialog
           handleAddParty={handleAddParty}
           onClose={() => setAgentVisible(false)}
           fakeData={fakeData}
+          dialogType={dialogType}
         />
       </Modal>
       <Modal
@@ -760,7 +765,7 @@
                 field='name'
                 onChange={(e) => console.log(e.target.value, 'vvv')}
               >
-                <Input placeholder='请输入' style={{ width: '510px' }} />
+                <Input placeholder='请输入' style={{ width: '515px' }} />
               </FormItem>
               <Button style={{ marginRight: '20px' }}>
                 重置

--
Gitblit v1.8.0