From e4785c89caae4d2c1638939fdbe34a9af4df557e Mon Sep 17 00:00:00 2001 From: jl-zhoujl2 Date: Thu, 30 Mar 2023 10:45:27 +0800 Subject: [PATCH] =?UTF-8?q?3.30=20=E4=B8=8D=E6=BB=A1=E8=B6=B3=E4=B8=89?= =?UTF-8?q?=E5=AE=B6=E9=9C=80=E8=A6=81=E5=A1=AB=E5=86=99=E5=8E=9F=E5=9B=A0?= =?UTF-8?q?=E7=9A=84=E8=A6=86=E7=9B=96=E8=8C=83=E5=9B=B4=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=BA=A0=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/PreliminarySummary.tsx | 2 +- .../components/BidPreliminarySummary.tsx | 22 ++++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/pages/Evaluation/BidPreliminary/BidPreliminaryManager/components/PreliminarySummary.tsx b/src/pages/Evaluation/BidPreliminary/BidPreliminaryManager/components/PreliminarySummary.tsx index 1846bb3..b098eea 100644 --- a/src/pages/Evaluation/BidPreliminary/BidPreliminaryManager/components/PreliminarySummary.tsx +++ b/src/pages/Evaluation/BidPreliminary/BidPreliminaryManager/components/PreliminarySummary.tsx @@ -236,7 +236,7 @@ const PreliminarySummary: React.FC = (props) => { const getFooterData = () => { checkShowData(getRoomId(), getURLInformation('nodeId')).then(response => { if (response?.code == 200) { - if (response?.data == undefined) { } else { + if (response?.data == undefined || response?.data?.id == null) { } else { setIsShowFoot(true) setRadioValue(response.data?.continueStatus) if (response.data?.continueStatus == 1) { diff --git a/src/pages/Evaluation/BidPreliminary/BidPreliminaryReviewLeader/components/BidPreliminarySummary.tsx b/src/pages/Evaluation/BidPreliminary/BidPreliminaryReviewLeader/components/BidPreliminarySummary.tsx index 2742d06..2a8db9c 100644 --- a/src/pages/Evaluation/BidPreliminary/BidPreliminaryReviewLeader/components/BidPreliminarySummary.tsx +++ b/src/pages/Evaluation/BidPreliminary/BidPreliminaryReviewLeader/components/BidPreliminarySummary.tsx @@ -83,16 +83,18 @@ const BidPreliminarySummary: React.FC = (props) => { isCheckShow(juryDataParams.assessRoomId).then((res) => { if (res.code == 200) { isShowRef.current = res.data; - let count = 0; - totalSupplier.forEach((ele: any) => { - if ( - data[data.length - 1].detailList[0].earlyMap[ele.supplierRegisterId].judgesResult == - true - ) { - count = count + 1; - } - }); - onSubmit(count); + if (res.data) { + let count = 0; + totalSupplier.forEach((ele: any) => { + if ( + data[data.length - 1].detailList[0].earlyMap[ele.supplierRegisterId].judgesResult == + true + ) { + count = count + 1; + } + }); + onSubmit(count); + } } }); //调用数据处理方法并初始化表格