Update LazyLoadDoc.vue
parent
c06021099e
commit
d0a32274ff
|
@ -222,7 +222,7 @@ export default {
|
||||||
const selectAll = event.checked;
|
const selectAll = event.checked;
|
||||||
|
|
||||||
if (selectAll) {
|
if (selectAll) {
|
||||||
this.customerService.getCustomers().then(data => {
|
CustomerService.getCustomers().then(data => {
|
||||||
this.selectAll = true;
|
this.selectAll = true;
|
||||||
this.selectedCustomers = data.customers;
|
this.selectedCustomers = data.customers;
|
||||||
});
|
});
|
||||||
|
@ -336,10 +336,10 @@ const onFilter = () => {
|
||||||
loadLazyData();
|
loadLazyData();
|
||||||
};
|
};
|
||||||
const onSelectAllChange = (event) => {
|
const onSelectAllChange = (event) => {
|
||||||
const selectAll = event.checked;
|
selectAll.value = event.checked;
|
||||||
|
|
||||||
if (selectAll) {
|
if (selectAll) {
|
||||||
customerService.value.getCustomers().then(data => {
|
CustomerService.getCustomers().then(data => {
|
||||||
selectAll.value = true;
|
selectAll.value = true;
|
||||||
selectedCustomers.value = data.customers;
|
selectedCustomers.value = data.customers;
|
||||||
});
|
});
|
||||||
|
@ -422,7 +422,7 @@ const onRowUnselect = () => {
|
||||||
const selectAll = event.checked;
|
const selectAll = event.checked;
|
||||||
|
|
||||||
if (selectAll) {
|
if (selectAll) {
|
||||||
this.customerService.getCustomers().then((data) => {
|
CustomerService.getCustomers().then((data) => {
|
||||||
this.selectAll = true;
|
this.selectAll = true;
|
||||||
this.selectedCustomers = data.customers;
|
this.selectedCustomers = data.customers;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue