[FO] 일계부 수입 등록 valid

This commit is contained in:
김현주
2025-06-12 14:44:41 +09:00
parent 5885ccaa17
commit 59ca1a8ade
6 changed files with 125 additions and 76 deletions

View File

@@ -177,6 +177,18 @@ var ajaxUtil = {
infoBox.html('<li>' + oj.message + '</li>');
}
}
if (target.data('type') == 'select') {
const component = target.parent().parent().closest('.select-group');
if(component){
component.addClass('select-invalid');
let infoBox = component.find('.input-info');
if (infoBox.length === 0) {
infoBox = $('<ul class="input-info"></ul>').appendTo(component);
}
infoBox.html('<li>' + oj.message + '</li>');
}
}
});
if ($('.invalid-feedback').length === 0) {
@@ -184,7 +196,6 @@ var ajaxUtil = {
if (fieldErrors != null && fieldErrors.length > 0) {
ajaxUtil._alert(fieldErrors[0].defaultMessage, '유효성 체크');
}
}
},
500:function(rstData){