From 424097e0359d96e8aa609ffb136fd45746378687 Mon Sep 17 00:00:00 2001 From: Mohd Arief Date: Fri, 17 Aug 2018 11:00:35 +0800 Subject: [PATCH] fixed the refresh button for completed order --- resources/assets/js/pages/admin/home.vue | 13 +++++++++---- resources/assets/js/pages/home.vue | 16 ++++++++++++---- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/resources/assets/js/pages/admin/home.vue b/resources/assets/js/pages/admin/home.vue index b5d4b62d..bbe21761 100644 --- a/resources/assets/js/pages/admin/home.vue +++ b/resources/assets/js/pages/admin/home.vue @@ -1,7 +1,7 @@ @@ -176,6 +173,14 @@ export default { }) }) }, + RefreshBookingCompleteTable() { + let $this = this + this.loading_btn = true + axios.get(this.completeBookingurl).then(response => { + this.loading_btn = false; + this.bookingTableComplete = response.data.data + }) + }, makePagination(data){ let pagination ={ current_page: data.current_page, diff --git a/resources/assets/js/pages/home.vue b/resources/assets/js/pages/home.vue index c02353aa..158bf5db 100644 --- a/resources/assets/js/pages/home.vue +++ b/resources/assets/js/pages/home.vue @@ -278,7 +278,7 @@

-Refresh
+Refresh @@ -525,7 +525,7 @@ export default { this.getBooking(); this.initBooking(); this.getRate(); - this.getCompleteBooking(); + this.getBookingTableComplete(); }, methods: { getBooking(){ @@ -535,7 +535,7 @@ export default { $this.makePagination(response.data) }) }, - getCompleteBooking(){ + getBookingTableComplete(){ let $this = this axios.get(this.completeBookingurl).then(response => { this.bookingTableComplete = response.data.data @@ -582,6 +582,14 @@ export default { }) }) }, + RefreshBookingCompleteTable() { + let $this = this + this.loading_btn = true + axios.get(this.completeBookingurl).then(response => { + this.loading_btn = false; + this.bookingTableComplete = response.data.data + }) + }, makePagination(data){ let pagination ={ current_page: data.current_page, @@ -608,7 +616,7 @@ export default { }, fetchCompletePaginateBooking(url) { this.completeBookingurl = url - this.getCompleteBooking() + this.getBookingTableComplete() },