Skip to content

Commit

Permalink
Update: Perbaikan Datatables
Browse files Browse the repository at this point in the history
  • Loading branch information
masadi committed Jun 9, 2024
1 parent 411fb7c commit 8340237
Show file tree
Hide file tree
Showing 34 changed files with 45 additions and 35 deletions.
2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/js/chunks/16.875e8edbb42a036fb7d6.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion public/js/chunks/16.dfe53b026da9e266a790.js

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion public/js/chunks/23.7b6bde79c8e2ec06ca85.js

This file was deleted.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/js/chunks/24.fc802f17cee167c3c5bb.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion public/js/chunks/27.ff3e9a84bd2f9a408f5a.js

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/js/chunks/30.8f6e8c51e1d16ad0dccb.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion public/js/chunks/31.5953ca12cb8d187dfbea.js

This file was deleted.

1 change: 1 addition & 0 deletions public/js/chunks/31.80e7f6865acd170aa863.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion public/js/chunks/34.649f5c255cdb9a49b33e.js

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/js/chunks/37.1cb2eadfc0bf760fbf9c.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion public/js/chunks/38.7dd679b07634a7f2e953.js

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/js/chunks/41.4d3233b267384ab385d7.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/js/app.js": "/js/app.js?id=09beb662495208cd5044",
"/js/app.js": "/js/app.js?id=c5fec8fe3864f9ba864c",
"/css/core.css": "/css/core.css?id=5d902ae10f7a46837492",
"/css/loader.css": "/css/loader.css?id=4f39b56a667dc447a5fe"
}
8 changes: 5 additions & 3 deletions resources/js/src/views/penilaian/Datatable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>
<b-row>
<b-col md="4" class="mb-2">
<b-form-select v-model="meta.per_page" :options="[10, 25, 50, 100]" @change="loadPerPage"></b-form-select>
<v-select v-model="meta.per_page" :options="[10, 25, 50, 100]" @input="loadPerPage"></v-select>
</b-col>
<b-col md="4" offset-md="4">
<b-form-input @input="search" placeholder="Cari data..."></b-form-input>
Expand Down Expand Up @@ -53,12 +53,14 @@

<script>
import _ from 'lodash' //IMPORT LODASH, DIMANA AKAN DIGUNAKAN UNTUK MEMBUAT DELAY KETIKA KOLOM PENCARIAN DIISI
import { BRow, BCol, BFormInput, BFormSelect, BFormSelectOption, BTable, BSpinner, BPagination, BButton, BOverlay, BDropdown, BDropdownItem, BBadge } from 'bootstrap-vue'
import { BRow, BCol, BFormInput, BTable, BSpinner, BPagination, BButton, BOverlay, BDropdown, BDropdownItem, BBadge } from 'bootstrap-vue'
import vSelect from 'vue-select'
export default {
components: {
vSelect,
BRow,
BCol,
BFormInput, BFormSelect, BFormSelectOption,
BFormInput,
BTable,
BSpinner,
BPagination,
Expand Down
8 changes: 5 additions & 3 deletions resources/js/src/views/penilaian/projek/Datatable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>
<b-row>
<b-col md="4" class="mb-2">
<b-form-select v-model="meta.per_page" :options="[10, 25, 50, 100]" @change="loadPerPage"></b-form-select>
<v-select v-model="meta.per_page" :options="[10, 25, 50, 100]" @input="loadPerPage"></v-select>
</b-col>
<b-col md="4" offset-md="4">
<b-form-input @input="search" placeholder="Cari data..."></b-form-input>
Expand Down Expand Up @@ -44,12 +44,14 @@

<script>
import _ from 'lodash' //IMPORT LODASH, DIMANA AKAN DIGUNAKAN UNTUK MEMBUAT DELAY KETIKA KOLOM PENCARIAN DIISI
import { BRow, BCol, BFormInput, BFormSelect, BFormSelectOption, BTable, BSpinner, BPagination, BButton, BOverlay, BDropdown, BDropdownItem, BBadge } from 'bootstrap-vue'
import { BRow, BCol, BFormInput, BTable, BSpinner, BPagination, BButton, BOverlay, BDropdown, BDropdownItem, BBadge } from 'bootstrap-vue'
import vSelect from 'vue-select'
export default {
components: {
vSelect,
BRow,
BCol,
BFormInput, BFormSelect, BFormSelectOption,
BFormInput,
BTable,
BSpinner,
BPagination,
Expand Down
8 changes: 5 additions & 3 deletions resources/js/src/views/penilaian/ukk/Datatable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>
<b-row>
<b-col md="4" class="mb-2">
<b-form-select v-model="meta.per_page" :options="[10, 25, 50, 100]" @change="loadPerPage"></b-form-select>
<v-select v-model="meta.per_page" :options="[10, 25, 50, 100]" @input="loadPerPage"></v-select>
</b-col>
<b-col md="4" offset-md="4">
<b-form-input @input="search" placeholder="Cari data..."></b-form-input>
Expand Down Expand Up @@ -46,12 +46,14 @@

<script>
import _ from 'lodash' //IMPORT LODASH, DIMANA AKAN DIGUNAKAN UNTUK MEMBUAT DELAY KETIKA KOLOM PENCARIAN DIISI
import { BRow, BCol, BFormInput, BFormSelect, BFormSelectOption, BTable, BSpinner, BPagination, BButton, BOverlay, BDropdown, BDropdownItem, BBadge } from 'bootstrap-vue'
import { BRow, BCol, BFormInput, BTable, BSpinner, BPagination, BButton, BOverlay, BDropdown, BDropdownItem, BBadge } from 'bootstrap-vue'
import vSelect from 'vue-select'
export default {
components: {
vSelect,
BRow,
BCol,
BFormInput, BFormSelect, BFormSelectOption,
BFormInput,
BTable,
BSpinner,
BPagination,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<filter-table :meta="meta" @tingkat="handleTingkat" @rombel="handleRombel" @mapel="handleMapel"></filter-table>
<b-row>
<b-col md="4" class="mb-2">
<v-select v-model="meta.per_page" :options="[10, 25, 50, 100]" @change="loadPerPage" :clearable="false"></v-select>
<v-select v-model="meta.per_page" :options="[10, 25, 50, 100]" @input="loadPerPage" :clearable="false"></v-select>
</b-col>
<b-col md="4" offset-md="4">
<b-form-input @input="search" placeholder="Cari data..."></b-form-input>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<filter-table :meta="meta" @tingkat="handleTingkat" @rombel="handleRombel" @mapel="handleMapel"></filter-table>
<b-row>
<b-col md="4" class="mb-2">
<!--b-form-select v-model="meta.per_page" :options="[10, 25, 50, 100]" @change="loadPerPage"></b-form-select-->
<v-select v-model="meta.per_page" :options="[10, 25, 50, 100]" @input="loadPerPage" :clearable="false">
<template slot="no-options">
Tidak ada data untuk ditampilkan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<filter-table :meta="meta" @tingkat="handleTingkat" @rombel="handleRombel" @mapel="handleMapel"></filter-table>
<b-row>
<b-col md="4" class="mb-2">
<v-select v-model="meta.per_page" :options="[10, 25, 50, 100]" @change="loadPerPage" :clearable="false"></v-select>
<v-select v-model="meta.per_page" :options="[10, 25, 50, 100]" @input="loadPerPage" :clearable="false"></v-select>
</b-col>
<b-col md="4" offset-md="4">
<b-form-input @input="search" placeholder="Cari data..."></b-form-input>
Expand Down Expand Up @@ -139,6 +139,8 @@ export default {
})
},
loadPerPage(val) {
console.log(val);
console.log(this.meta.per_page);
this.$emit('per_page', this.meta.per_page)
},
changePage(val) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export default {
this.loadPostsData()
},
loadPostsData() {
console.log(this.current_page);
this.loading = true
let current_page = this.current_page//this.search == '' ? this.current_page : 1
this.$http.get('/referensi/tujuan-pembelajaran', {
Expand Down Expand Up @@ -143,6 +144,7 @@ export default {
})
},
handlePerPage(val) {
console.log(val);
this.per_page = val
this.loadPostsData()
},
Expand Down
9 changes: 5 additions & 4 deletions resources/js/src/views/referensi/ukk/Datatable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>
<b-row>
<b-col md="4" class="mb-2">
<b-form-select v-model="meta.per_page" :options="[10, 25, 50, 100]" @change="loadPerPage"></b-form-select>
<v-select v-model="meta.per_page" :options="[10, 25, 50, 100]" @input="loadPerPage"></v-select>
</b-col>
<b-col md="4" offset-md="4">
<b-form-input @input="search" placeholder="Cari data..."></b-form-input>
Expand Down Expand Up @@ -48,13 +48,14 @@

<script>
import _ from 'lodash' //IMPORT LODASH, DIMANA AKAN DIGUNAKAN UNTUK MEMBUAT DELAY KETIKA KOLOM PENCARIAN DIISI
import { BRow, BCol, BFormInput, BFormSelect, BTable, BSpinner, BPagination, BButton, BOverlay, BBadge, BDropdown, BDropdownItem } from 'bootstrap-vue'
import { BRow, BCol, BFormInput, BTable, BSpinner, BPagination, BButton, BOverlay, BBadge, BDropdown, BDropdownItem } from 'bootstrap-vue'
import vSelect from 'vue-select'
export default {
components: {
vSelect,
BRow,
BCol,
BFormInput, BFormSelect,
BFormInput,
BTable,
BSpinner,
BPagination,
Expand Down

0 comments on commit 8340237

Please sign in to comment.