From 2ff67a5096a3fe43c2967c5a84fd78cbb1c0a459 Mon Sep 17 00:00:00 2001
From: liuwh <964324856@qq.com>
Date: Tue, 10 Sep 2024 10:13:35 +0800
Subject: [PATCH] 修改

---
 gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx |    7 +++----
 1 files changed, 3 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 82cf116..decb012 100644
--- a/gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx
+++ b/gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx
@@ -49,8 +49,7 @@
   }, [fakeData])
 
   useEffect(() => {
-    console.log(props.partyList);
-    setFakeData(props.partyList.map(item => {
+    setFakeData(props.partyList?.map(item => {
       const fileInfoList = item.fileInfoList
       let file = [];//身份证明材料、企业登记材料
       let file1 = [];//法人、机构身份证明材料、代理人授权委托书
@@ -75,7 +74,7 @@
         file,
         file1
       }
-    }))
+    }) || [])
   }, [props.partyList])
 
   //获取当前时间
@@ -391,7 +390,7 @@
           <div className='MediationInfo-subTitle' style={{ marginTop: '-9px' }}></div><h4>事件材料</h4>
         </Space>
       </Col>
-      <FileTable mainId={props.mainId} />
+      <FileTable mainId={props.mainId} fileInfoList={props.fileInfoList}/>
 
       <DocumentScanner
         visible={scanFile}

--
Gitblit v1.8.0