From 3ae864f005e8a874de01c15e14b83196a3f6f11b Mon Sep 17 00:00:00 2001 From: xusd <hugeinfo123> Date: Wed, 18 Sep 2024 10:21:30 +0800 Subject: [PATCH] 新增一个测试环境 --- gz-customerSystem/src/components/personCard/index.jsx | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gz-customerSystem/src/components/personCard/index.jsx b/gz-customerSystem/src/components/personCard/index.jsx index df5109e..04a9c83 100644 --- a/gz-customerSystem/src/components/personCard/index.jsx +++ b/gz-customerSystem/src/components/personCard/index.jsx @@ -32,13 +32,13 @@ } let isAgent = false let isAgentFor = false - const typeList = data.map(item => { + const typeList = data?.map(item => { return item.perType })//获取有多少申请人和被申请人 - if (typeList.indexOf('15_020008-1') != -1) { + if (typeList?.indexOf('15_020008-1') != -1) { isAgent = true } - if (typeList.indexOf('15_020008-2') != -1) { + if (typeList?.indexOf('15_020008-2') != -1) { isAgentFor = true } @@ -51,7 +51,7 @@ return ( <Fragment> <Row gutter={[24, 16]}> - {data.map((x, t) => ( + {data?.map((x, t) => ( <Col span={7} key={t}> <div className="public-personCard" style={{ cursor: 'pointer' }}> <div @@ -142,7 +142,7 @@ unmountOnExit={true} maskClosable={false} > - <DetailDialog editData={editData} /> + <DetailDialog editData={editData} personData={data} /> </Modal> </Fragment> ); -- Gitblit v1.8.0