From 47e16d0a56559916c5fb9c4de08838e7a1d457d8 Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Mon, 09 Sep 2024 18:10:50 +0800
Subject: [PATCH] feat: 完善功能

---
 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..0a883e8 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} isReview={false}/>
 
       <DocumentScanner
         visible={scanFile}

--
Gitblit v1.8.0