건설현장 목록 정보가 없으면 기본적으로 목록 없음 표시

main
유지인 2025-11-21 16:41:43 +09:00
parent 43e00bb0f2
commit 9e1186280e
2 changed files with 6 additions and 1 deletions

View File

@ -62,6 +62,9 @@
var content = '';
if (obj.datas.length < 1) {
content = '<tr><td colspan="11">조회된 건설현장이 없습니다.</td></tr>';
}
for( idx in obj.datas ) {
const constStartDate = obj.datas[idx].constStartDate == null ? '알 수 없음' : obj.datas[idx].constStartDate;
const constEndDate = obj.datas[idx].constEndDate == null ? '알 수 없음' : obj.datas[idx].constEndDate;

View File

@ -62,7 +62,9 @@
dataListEle.innerHTML = '';
var content = '';
if (obj.datas.length < 1) {
content = '<tr><td colspan="11">조회된 건설현장이 없습니다.</td></tr>';
}
for( idx in obj.datas ) {
const constStartDate = obj.datas[idx].constStartDate == null ? '알 수 없음' : obj.datas[idx].constStartDate;
const constEndDate = obj.datas[idx].constEndDate == null ? '알 수 없음' : obj.datas[idx].constEndDate;