diff --git a/src/views/biz/judge/ProcessJudge.jsx b/src/views/biz/judge/ProcessJudge.jsx index 1e94c90..2bb07a2 100644 --- a/src/views/biz/judge/ProcessJudge.jsx +++ b/src/views/biz/judge/ProcessJudge.jsx @@ -22,7 +22,7 @@ const ProcessJudge = (props) => { const getImgList = (row) => { findJudgeImages(row).then((res) => { const { arrFrecadImg, arrContadImg, arrPicadImg } = res; - // console.log(arrFrecadImg, arrContadImg, arrPicadImg); + console.log(arrFrecadImg, arrContadImg, arrPicadImg); setFrecadImgs(arrFrecadImg); setContadImgs(arrContadImg); setPicadImgs(arrPicadImg); @@ -96,19 +96,25 @@ const ProcessJudge = (props) => { - {frecadImgs?.map((img, idx) => ( - - ))} + {frecadImgs + ?.filter((img) => img.imgName !== '') + .map((img, idx) => ( + + ))} - {contadImgs?.map((img, idx) => ( - - ))} + {contadImgs + ?.filter((img) => img.imgName !== '') + .map((img, idx) => ( + + ))} - {picadImgs?.map((img, idx) => ( - - ))} + {picadImgs + ?.filter((img) => img.imgName !== '') + .map((img, idx) => ( + + ))} diff --git a/src/views/biz/judge/ProcessParkingJudge.jsx b/src/views/biz/judge/ProcessParkingJudge.jsx index fbc112d..83ed34c 100644 --- a/src/views/biz/judge/ProcessParkingJudge.jsx +++ b/src/views/biz/judge/ProcessParkingJudge.jsx @@ -96,19 +96,25 @@ const ProcessParkingJudge = (props) => { - {frecadImgs?.map((img, idx) => ( - - ))} + {frecadImgs + ?.filter((img) => img.imgName !== '') + .map((img, idx) => ( + + ))} - {contadImgs?.map((img, idx) => ( - - ))} + {contadImgs + ?.filter((img) => img.imgName !== '') + .map((img, idx) => ( + + ))} - {picadImgs?.map((img, idx) => ( - - ))} + {picadImgs + ?.filter((img) => img.imgName !== '') + .map((img, idx) => ( + + ))}