|
|
@ -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;
|
|
|
|