diff --git a/src/pages/Bid/BiddingAnnouncement/components/BiddingAnnouncement.tsx b/src/pages/Bid/BiddingAnnouncement/components/BiddingAnnouncement.tsx index a998615..1e176ff 100644 --- a/src/pages/Bid/BiddingAnnouncement/components/BiddingAnnouncement.tsx +++ b/src/pages/Bid/BiddingAnnouncement/components/BiddingAnnouncement.tsx @@ -760,7 +760,7 @@ const BiddingAnnouncement: React.FC = (props) => { name="attDatasetId" extra="单个附件最大30MB" > - {UploadID != "empty" ? : null} + {UploadID != "empty" ? : null} {/* 发布媒体 */} diff --git a/src/pages/Bid/BiddingAnnouncement/components/BiddingAnnouncement4Change.tsx b/src/pages/Bid/BiddingAnnouncement/components/BiddingAnnouncement4Change.tsx index a9c4eb6..b57bddc 100644 --- a/src/pages/Bid/BiddingAnnouncement/components/BiddingAnnouncement4Change.tsx +++ b/src/pages/Bid/BiddingAnnouncement/components/BiddingAnnouncement4Change.tsx @@ -713,7 +713,7 @@ const BiddingAnnouncement: React.FC = (props) => { name="attDatasetId" extra="单个附件最大30MB" > - {UploadID != "empty" ? : null} + {UploadID != "empty" ? : null} }> diff --git a/src/pages/Bid/BiddingAnnouncement/components/BiddingInvitation.tsx b/src/pages/Bid/BiddingAnnouncement/components/BiddingInvitation.tsx index 2d80e39..785150a 100644 --- a/src/pages/Bid/BiddingAnnouncement/components/BiddingInvitation.tsx +++ b/src/pages/Bid/BiddingAnnouncement/components/BiddingInvitation.tsx @@ -813,7 +813,7 @@ const BiddingInvitation: React.FC = (props) => { name="attDatasetId" extra="单个附件最大30MB" > - {UploadID != "empty" ? : null} + {UploadID != "empty" ? : null} diff --git a/src/pages/Calibration/BidPublicityResult/components/BidPublicityResults.tsx b/src/pages/Calibration/BidPublicityResult/components/BidPublicityResults.tsx index 4929ab5..0927e04 100644 --- a/src/pages/Calibration/BidPublicityResult/components/BidPublicityResults.tsx +++ b/src/pages/Calibration/BidPublicityResult/components/BidPublicityResults.tsx @@ -274,7 +274,7 @@ const BidPublicityResults: React.FC = (props) => { } creatNotice(type, fromData).then(res => { - if(res?.code == 4004 && res?.success == false) { //2021.9.7 zhoujianlong 新增和修改公示增加风控 + if (res?.code == 4004 && res?.success == false) { //2021.9.7 zhoujianlong 新增和修改公示增加风控 const data = res?.data?.result == undefined ? [] : res?.data?.result setRiskData(data) setRiskVisible(true) @@ -452,7 +452,7 @@ const BidPublicityResults: React.FC = (props) => { name="attDatasetId" extra="单个附件最大30MB" > - {UploadID != "empty" ? : null} + {UploadID != "empty" ? : null} {/* 发布媒体 */} @@ -475,7 +475,7 @@ const BidPublicityResults: React.FC = (props) => { {/* */} {/**风控组件 */} - {riskVisible && { setRiskVisible(false) diff --git a/src/pages/ZYuShen/Bid/BiddingAnnouncement/components/BiddingAnnouncement.tsx b/src/pages/ZYuShen/Bid/BiddingAnnouncement/components/BiddingAnnouncement.tsx index f9194bf..f76150a 100644 --- a/src/pages/ZYuShen/Bid/BiddingAnnouncement/components/BiddingAnnouncement.tsx +++ b/src/pages/ZYuShen/Bid/BiddingAnnouncement/components/BiddingAnnouncement.tsx @@ -778,7 +778,7 @@ const BiddingAnnouncement: React.FC = (props) => { name="attDatasetId" extra="单个附件最大30MB" > - {UploadID != "empty" ? : null} + {UploadID != "empty" ? : null} {/* 发布媒体 */} = (props) => { name="attDatasetId" extra="单个附件最大30MB" > - {UploadID != "empty" ? : null} + {UploadID != "empty" ? : null} }> diff --git a/src/pages/ZZhaoMu/Bid/BiddingAnnouncement/components/BiddingAnnouncement.tsx b/src/pages/ZZhaoMu/Bid/BiddingAnnouncement/components/BiddingAnnouncement.tsx index ebe7b0e..bd9e780 100644 --- a/src/pages/ZZhaoMu/Bid/BiddingAnnouncement/components/BiddingAnnouncement.tsx +++ b/src/pages/ZZhaoMu/Bid/BiddingAnnouncement/components/BiddingAnnouncement.tsx @@ -519,7 +519,7 @@ const BiddingAnnouncement: React.FC = (props) => { name="attDatasetId" extra="单个附件最大30MB" > - {UploadID != "empty" ? : null} + {UploadID != "empty" ? : null} {/* 发布媒体 */} = (props) => { name="attDatasetId" extra="单个附件最大30MB" > - {UploadID != "empty" ? : null} + {UploadID != "empty" ? : null} }> diff --git a/src/pages/ZZhaoMu/Calibration/BidPublicityResult/components/BidPublicityResults.tsx b/src/pages/ZZhaoMu/Calibration/BidPublicityResult/components/BidPublicityResults.tsx index b0c2ba4..2aa5112 100644 --- a/src/pages/ZZhaoMu/Calibration/BidPublicityResult/components/BidPublicityResults.tsx +++ b/src/pages/ZZhaoMu/Calibration/BidPublicityResult/components/BidPublicityResults.tsx @@ -37,7 +37,7 @@ const layout = { var objDeepCopy = function (source: any) { var sourceCopy = source instanceof Array ? [] : {}; for (var item in source) { - sourceCopy[item] = typeof source[item] === 'object' ? objDeepCopy(source[item]) : source[item]; + sourceCopy[item] = typeof source[item] === 'object' ? objDeepCopy(source[item]) : source[item]; } return sourceCopy; } @@ -83,18 +83,18 @@ const BidPublicityResults: React.FC = (props) => { dataIndex: 'rooms', render: (text: any, record: any) => { let defaultValue: any = [] - record.rooms.map((item: any)=>{ - if(item.select == 1){ - defaultValue.push(record.bsId+'&'+item.assessRoomId+'-'+item.assessRoomSort) + record.rooms.map((item: any) => { + if (item.select == 1) { + defaultValue.push(record.bsId + '&' + item.assessRoomId + '-' + item.assessRoomSort) } }) return ( <> - { onCheckChange(e, record) }} + value={defaultValue} + onChange={(e) => { onCheckChange(e, record) }} /> ) @@ -159,7 +159,7 @@ const BidPublicityResults: React.FC = (props) => { val.value = item.bsId + '&' + val.assessRoomId + '-' + val.assessRoomSort val.label = '轮次' + val.assessRoomSort val.select = 1 - bags+=1 + bags += 1 }) }) setRoundsTotal(bags) // 轮次数量 @@ -192,19 +192,19 @@ const BidPublicityResults: React.FC = (props) => { const data = res.data setBagsTotal(data?.sections.length) // 包数量 let bags: any = 0 - data?.sections.map((item: any)=>{ - item.rooms.map((val: any)=>{ - bags+=1 + data?.sections.map((item: any) => { + item.rooms.map((val: any) => { + bags += 1 }) }) setRoundsTotal(bags) // 轮次数量 - editVal.map((item: any)=>{ - data?.sections.map((val: any)=>{ - if(item.bsId == val.bsId){ + editVal.map((item: any) => { + data?.sections.map((val: any) => { + if (item.bsId == val.bsId) { item.bag = 1 - item.rooms.map((val1: any)=>{ - val.rooms.map((val2: any)=>{ - if(val1.assessRoomSort == val2.assessRoomSort){ + item.rooms.map((val1: any) => { + val.rooms.map((val2: any) => { + if (val1.assessRoomSort == val2.assessRoomSort) { val1.select = 1 } }) @@ -232,12 +232,12 @@ const BidPublicityResults: React.FC = (props) => { const roundsOk = () => { // 选中标段轮次确定 let bags: any = 0 let rounds: any = 0 - columnsData.map((item: any)=>{ - if(item.bag && item.bag == 1 && item.rooms.length > 0){ - bags+=1 - item.rooms.map((val: any)=>{ - if(val.select == 1){ - rounds+=1 + columnsData.map((item: any) => { + if (item.bag && item.bag == 1 && item.rooms.length > 0) { + bags += 1 + item.rooms.map((val: any) => { + if (val.select == 1) { + rounds += 1 } }) } @@ -245,10 +245,10 @@ const BidPublicityResults: React.FC = (props) => { setOldColumnsData(objDeepCopy(columnsData)) setBagsTotal(bags) setRoundsTotal(rounds) - if(bags != 0 && rounds != 0){ - form.setFieldsValue({"sectionIds": '已选'+bags+'个包,'+rounds+'轮'}) + if (bags != 0 && rounds != 0) { + form.setFieldsValue({ "sectionIds": '已选' + bags + '个包,' + rounds + '轮' }) } else { - form.setFieldsValue({"sectionIds": ''}) + form.setFieldsValue({ "sectionIds": '' }) } setRoundsVisible(false) } @@ -266,7 +266,7 @@ const BidPublicityResults: React.FC = (props) => { columnsData.map((item: any) => { if (item.bsId == record.bsId) { item.rooms.map((val1: any) => { - if(e.length > 0){ + if (e.length > 0) { item.bag = 1 val1.select = 0 e.map((val: any) => { @@ -309,7 +309,7 @@ const BidPublicityResults: React.FC = (props) => { } setSping(true); creatNotice(type, fromData).then(res => { - if(res?.code == 4004 && res?.success == false) { //2021.9.7 zhoujianlong 新增和修改招募公示增加风控 + if (res?.code == 4004 && res?.success == false) { //2021.9.7 zhoujianlong 新增和修改招募公示增加风控 const data = res?.data?.result == undefined ? [] : res?.data?.result setRiskData(data) setRiskVisible(true) @@ -449,7 +449,7 @@ const BidPublicityResults: React.FC = (props) => { ]} > { - bagsTotal > 0 ? : + bagsTotal > 0 ? : } @@ -458,7 +458,7 @@ const BidPublicityResults: React.FC = (props) => { name="attDatasetId" extra="单个附件最大30MB" > - {UploadID != "empty" ? : null} + {UploadID != "empty" ? : null} {/* 发布媒体 */} = (props) => { {/**风控组件 */} - {riskVisible && { setRiskVisible(false) @@ -497,10 +497,10 @@ const BidPublicityResults: React.FC = (props) => { style={{ maxHeight: modalHeight }} bodyStyle={{ maxHeight: modalHeight - 107, overflowY: 'auto' }} footer={[ - editInformation ? - : - <>, - + editInformation ? + : + <>, + ]} centered width={800}