fix: 심사 - 심사대상 이미지 view : 등록된 이미지만 보이도록 변경

mpower
minuk926 2 years ago
parent 0bc3fddbb7
commit c41c37f682

@ -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,17 +96,23 @@ const ProcessJudge = (props) => {
<Grid container spacing={1}>
<Grid item xs={6}>
<ImageList cols={4}>
{frecadImgs?.map((img, idx) => (
{frecadImgs
?.filter((img) => img.imgName !== '')
.map((img, idx) => (
<ImgItem key={idx} idx={idx} title={`진술서${idx + 1}`} imgInfo={img} onViewImage={viewImage} />
))}
</ImageList>
<ImageList cols={4}>
{contadImgs?.map((img, idx) => (
{contadImgs
?.filter((img) => img.imgName !== '')
.map((img, idx) => (
<ImgItem key={idx} idx={idx} title={`첨부파일${idx + 1}`} imgInfo={img} onViewImage={viewImage} />
))}
</ImageList>
<ImageList cols={4}>
{picadImgs?.map((img, idx) => (
{picadImgs
?.filter((img) => img.imgName !== '')
.map((img, idx) => (
<ImgItem key={idx} idx={idx} title={`단속사진${idx + 1}`} imgInfo={img} onViewImage={viewImage} />
))}
</ImageList>

@ -96,17 +96,23 @@ const ProcessParkingJudge = (props) => {
<Grid container spacing={1}>
<Grid item xs={6}>
<ImageList cols={4}>
{frecadImgs?.map((img, idx) => (
{frecadImgs
?.filter((img) => img.imgName !== '')
.map((img, idx) => (
<ImgItem key={idx} idx={idx} title={`진술서${idx + 1}`} imgInfo={img} onViewImage={viewImage} />
))}
</ImageList>
<ImageList cols={4}>
{contadImgs?.map((img, idx) => (
{contadImgs
?.filter((img) => img.imgName !== '')
.map((img, idx) => (
<ImgItem key={idx} idx={idx} title={`첨부파일${idx + 1}`} imgInfo={img} onViewImage={viewImage} />
))}
</ImageList>
<ImageList cols={4}>
{picadImgs?.map((img, idx) => (
{picadImgs
?.filter((img) => img.imgName !== '')
.map((img, idx) => (
<ImgItem key={idx} idx={idx} title={`단속사진${idx + 1}`} imgInfo={img} onViewImage={viewImage} />
))}
</ImageList>

Loading…
Cancel
Save