From 27b935c319f75ee68dde68e7f666b4c3befd0ba0 Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Thu, 22 Aug 2024 16:53:17 +0800
Subject: [PATCH] feat:地图弹窗

---
 gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx |   58 +++++++++++++++++++++-------------------------------------
 1 files changed, 21 insertions(+), 37 deletions(-)

diff --git a/gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx b/gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx
index f3a4fbc..cb63b27 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)
@@ -702,7 +702,7 @@
       </Modal>
       <Modal style={{ width: '1200px' }} visible={filesCheck} onCancel={() => setFilesCheck(false)} footer={null} title='查看事件材料' centered>
         {/* <div className="mediationWindow-modal-main" style={{ display: 'flex' }}> */}
-        <div style={{marginTop:'-16px'}}>
+        <div style={{ marginTop: '-16px' }}>
           <NewFileCheck />
         </div>
         {/* </div> */}
@@ -715,6 +715,8 @@
         autoFocus={false}
         focusLock={true}
         footer={null}
+        unmountOnExit={true}
+        maskClosable={false}
       >
         <ApplyDialog
           dialogType={dialogType}
@@ -730,11 +732,14 @@
         autoFocus={false}
         focusLock={true}
         footer={null}
+        unmountOnExit={true}
+        maskClosable={false}
       >
         <AgentDialog
           handleAddParty={handleAddParty}
           onClose={() => setAgentVisible(false)}
           fakeData={fakeData}
+          dialogType={dialogType}
         />
       </Modal>
       <Modal
@@ -745,43 +750,22 @@
         autoFocus={false}
         focusLock={true}
         footer={null}
+        unmountOnExit={true}
+        maskClosable={false}
       >
         <DetailDialog />
       </Modal>
-      <Modal style={{ width: '1200px' }} visible={mapView} onCancel={() => setMapView(false)} footer={null} title='选择纠纷发生地' centered>
-        <Row gutter={[16, 0]}>
-          <Col span={16}>
-            <Form
-              ref={formRef}
-              requiredSymbol={false}
-              layout='inline'
-              {...formItemLayout}
-              style={{ marginBottom: '8px' }}
-            >
-              <FormItem
-                label='查询位置:'
-                field='name'
-                onChange={(e) => console.log(e.target.value, 'vvv')}
-              >
-                <Input placeholder='请输入' style={{ width: '515px' }} />
-              </FormItem>
-              <Button style={{ marginRight: '20px' }}>
-                重置
-              </Button>
-              <Button
-                type="primary"
-              // onClick={handleSave}
-              >
-                查询
-              </Button>
-            </Form>
-            <MapView />
-          </Col>
-          <Col span={8}>
-            <div style={{ color: '#86909C', marginTop: '43px' }}>附近地址</div>
-          </Col>
-
-        </Row>
+      <Modal
+        style={{ width: '1200px' }}
+        visible={mapView}
+        onCancel={() => setMapView(false)}
+        footer={null}
+        title='选择纠纷发生地'
+        centered
+        unmountOnExit={true}
+        maskClosable={false}
+      >
+        <MapView />
       </Modal>
     </div>
   )

--
Gitblit v1.8.0