Refactor name
parent
04f0a4575b
commit
ad9e4d6be1
|
@ -113,7 +113,7 @@ export default {
|
||||||
this.lazyFilters = filters;
|
this.lazyFilters = filters;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onLazyEvent(event) {
|
loadLazyData(event) {
|
||||||
const proxyFilters = JSON.parse(JSON.stringify(this.filters));
|
const proxyFilters = JSON.parse(JSON.stringify(this.filters));
|
||||||
for(let filter in proxyFilters) {
|
for(let filter in proxyFilters) {
|
||||||
this.lazyFilters[filter].value = proxyFilters[filter] || null;
|
this.lazyFilters[filter].value = proxyFilters[filter] || null;
|
||||||
|
@ -137,10 +137,10 @@ export default {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
},
|
},
|
||||||
onPage(event) {
|
onPage(event) {
|
||||||
this.onLazyEvent(event);
|
this.loadLazyData(event);
|
||||||
},
|
},
|
||||||
onSort(event) {
|
onSort(event) {
|
||||||
this.onLazyEvent(event);
|
this.loadLazyData(event);
|
||||||
},
|
},
|
||||||
onFilter(event) {
|
onFilter(event) {
|
||||||
if(event.keyCode === 13) {
|
if(event.keyCode === 13) {
|
||||||
|
@ -220,7 +220,7 @@ export default {
|
||||||
this.lazyFilters = filters;
|
this.lazyFilters = filters;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onLazyEvent(event) {
|
loadLazyData(event) {
|
||||||
const proxyFilters = JSON.parse(JSON.stringify(this.filters));
|
const proxyFilters = JSON.parse(JSON.stringify(this.filters));
|
||||||
for(let filter in proxyFilters) {
|
for(let filter in proxyFilters) {
|
||||||
this.lazyFilters[filter].value = proxyFilters[filter] || null;
|
this.lazyFilters[filter].value = proxyFilters[filter] || null;
|
||||||
|
@ -244,10 +244,10 @@ export default {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
},
|
},
|
||||||
onPage(event) {
|
onPage(event) {
|
||||||
this.onLazyEvent(event);
|
this.loadLazyData(event);
|
||||||
},
|
},
|
||||||
onSort(event) {
|
onSort(event) {
|
||||||
this.onLazyEvent(event);
|
this.loadLazyData(event);
|
||||||
},
|
},
|
||||||
onFilter(event) {
|
onFilter(event) {
|
||||||
if(event.keyCode === 13) {
|
if(event.keyCode === 13) {
|
||||||
|
|
Loading…
Reference in New Issue