feat: 심사자 심의 진행

main
minuk926 3 years ago
parent 681fd8060b
commit 2fbc85bfa2

@ -177,8 +177,15 @@ async function judgeImgList(res, scCode, fieldCnt, fieldName, dataGb, methodName
if (res?.data[`${fieldName}${idx}`]) { if (res?.data[`${fieldName}${idx}`]) {
// eslint-disable-next-line no-await-in-loop // eslint-disable-next-line no-await-in-loop
await judgeImgDownload({ scDatagb: dataGb, scCode, methodName: `${methodName}${idx}` }, alert).then((r) => { await judgeImgDownload({ scDatagb: dataGb, scCode, methodName: `${methodName}${idx}` }, alert).then((r) => {
if (r.size > 0) arrRtn.push(URL.createObjectURL(r)); if (r.size > 0) {
arrRtn.push(URL.createObjectURL(r));
} else {
arrRtn.push('/images/file-not-found.png');
}
// else
}); // .then((r) => { }); // .then((r) => {
} else {
arrRtn.push('/images/no-image.png');
} }
} }
return arrRtn; return arrRtn;

Loading…
Cancel
Save