Remove timeout
parent
624dcd7558
commit
dbbf4ce38c
|
@ -116,13 +116,11 @@ export default {
|
||||||
loadLazyData() {
|
loadLazyData() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|
||||||
setTimeout(() => {
|
this.customerService.getCustomers({lazyEvent: JSON.stringify( this.lazyParams )}).then(data => {
|
||||||
this.customerService.getCustomers({lazyEvent: JSON.stringify( this.lazyParams )}).then(data => {
|
this.customers = data.customers;
|
||||||
this.customers = data.customers;
|
this.totalRecords = data.totalRecords;
|
||||||
this.totalRecords = data.totalRecords;
|
this.loading = false;
|
||||||
this.loading = false;
|
});
|
||||||
});
|
|
||||||
}, 1000);
|
|
||||||
},
|
},
|
||||||
onPage(event) {
|
onPage(event) {
|
||||||
this.lazyParams = event;
|
this.lazyParams = event;
|
||||||
|
@ -194,13 +192,11 @@ export default {
|
||||||
loadLazyData() {
|
loadLazyData() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|
||||||
setTimeout(() => {
|
this.customerService.getCustomers({lazyEvent: JSON.stringify( this.lazyParams )}).then(data => {
|
||||||
this.customerService.getCustomers({lazyEvent: JSON.stringify( this.lazyParams )}).then(data => {
|
this.customers = data.customers;
|
||||||
this.customers = data.customers;
|
this.totalRecords = data.totalRecords;
|
||||||
this.totalRecords = data.totalRecords;
|
this.loading = false;
|
||||||
this.loading = false;
|
});
|
||||||
});
|
|
||||||
}, 1000);
|
|
||||||
},
|
},
|
||||||
onPage(event) {
|
onPage(event) {
|
||||||
this.lazyParams = event;
|
this.lazyParams = event;
|
||||||
|
|
Loading…
Reference in New Issue