Develop realisasi belanja dbh

This commit is contained in:
Pusdatin BPKD Jkt
2022-07-18 16:38:09 +07:00
parent 3036b133fe
commit d05779485b
17 changed files with 419 additions and 116 deletions
+81 -5
View File
@@ -104,8 +104,7 @@
Swal.fire('{{ $message }}', '', 'error');
@endif
initailizeSelect2 = () =>{
$('.skpd_search').select2({
$('.skpd_search').select2({
placeholder: 'Pilih SKPD',
ajax: {
url: '/skpd-search',
@@ -123,10 +122,87 @@
},
cache: true
}
});
}
});
initailizeSelect2();
$('.prog_search').select2({
placeholder: 'Pilih Program',
ajax: {
url: '/item-search-prog',
dataType: 'json',
delay: 250,
processResults: function (data) {
return {
results: $.map(data, function (item) {
return {
text: item.name,
id: item.id
}
})
};
},
cache: true
}
});
$('.keg_search').select2({
placeholder: 'Pilih Kegiatan',
ajax: {
url: '/item-search-keg',
dataType: 'json',
delay: 250,
processResults: function (data) {
return {
results: $.map(data, function (item) {
return {
text: item.name,
id: item.id
}
})
};
},
cache: true
}
});
$('.sk_search').select2({
placeholder: 'Pilih Sub Kegiatan',
ajax: {
url: '/item-search-sk',
dataType: 'json',
delay: 250,
processResults: function (data) {
return {
results: $.map(data, function (item) {
return {
text: item.name,
id: item.id
}
})
};
},
cache: true
}
});
$('.rsk_search').select2({
placeholder: 'Pilih Rinci Sub Kegiatan',
ajax: {
url: '/item-search-rsk',
dataType: 'json',
delay: 250,
processResults: function (data) {
return {
results: $.map(data, function (item) {
return {
text: item.name,
id: item.id
}
})
};
},
cache: true
}
});
$(document).on("click",".modalButton",function (e){
$("#overlayLoader").removeClass("d-flex");