Commit 0dd061db by Alfiro Pratama

fix query getdosen

parent cd927e8c
...@@ -34,7 +34,7 @@ class DosenController extends Controller ...@@ -34,7 +34,7 @@ class DosenController extends Controller
$jumlah_bimbingan = Kelompok::where('id_sdm', $item['id_sdm']) $jumlah_bimbingan = Kelompok::where('id_sdm', $item['id_sdm'])
->where('periode_id', $periode->periode_id) ->where('periode_id', $periode->periode_id)
->where('status_hapus', '0') ->where('status_hapus', '0')
->where('kirim', 1) ->where('kirim', '1')
->whereYear('created_at', $periode->nama) ->whereYear('created_at', $periode->nama)
->count(); ->count();
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
ajax: { ajax: {
url: "{{ route('api.getDosen') }}", url: "{{ route('api.getDosen') }}",
dataType: 'json', dataType: 'json',
delay: 250, delay: 500,
data: function (params) { data: function (params) {
return { return {
q: params.term, // search term q: params.term, // search term
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
cache: true cache: true
}, },
placeholder: 'Pilih Dosen Pembimbing', placeholder: 'Pilih Dosen Pembimbing',
minimumInputLength: 1, minimumInputLength: 5,
templateResult: formatRepo, templateResult: formatRepo,
templateSelection: formatRepoSelection templateSelection: formatRepoSelection
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment