[BO] 임산물 현황 오류 수정
This commit is contained in:
@@ -82,16 +82,11 @@
|
||||
tbody.empty();
|
||||
|
||||
// TODO(ks) : monthlyStatus 없을 경우 처리 추가... 일단 .. 이렇게 처리 하지만.. 또 다른 방안이 있을지...
|
||||
if (!response.monthlyStatus || !response.monthlyStatus.status) {
|
||||
if (!response.monthlyStatus || !response.monthlyStatus.forestStatus) {
|
||||
noDataMonthly(tbody, null, 15);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!response.forestProducts || response.forestProducts.length === 0) {
|
||||
noDataMonthly(tbody, response.monthlyStatus.status, 15);
|
||||
return;
|
||||
}
|
||||
|
||||
// 임산물 현황 등록 상태 id set
|
||||
f.monthlyInputStatusId.value = response.monthlyStatus.id;
|
||||
// 이번달 등록내용 없음 체크 - NONE : 미등록, NOTHING : 이번달 등록내용 없음 , REGISTERED : 등록완료
|
||||
@@ -99,6 +94,11 @@
|
||||
// 이번달 등록내용 없음 에 따라 버튼 hide 처리
|
||||
showForestProductNoneBtn();
|
||||
|
||||
if (!response.forestProducts || response.forestProducts.length === 0) {
|
||||
noDataMonthly(tbody, response.monthlyStatus.forestStatus, 15);
|
||||
return;
|
||||
}
|
||||
|
||||
let tmpl = '';
|
||||
$(response.forestProducts).each((idx, item) => {
|
||||
tmpl +=
|
||||
|
||||
Reference in New Issue
Block a user