fix user bookings pagination bug

This commit is contained in:
omair saleh
2021-05-20 17:20:11 +08:00
parent 2cbd4a723f
commit f59d5fe207
@@ -153,14 +153,14 @@ export default {
getBooking(){
let $this = this
axios.get(this.url+"/"+ this.$route.params.userId).then(response => {
this.bookingTable = response.data.data;
this.bookingTable = response.data;
$this.makePagination(response.data);
})
},
getBookingTableComplete(){
let vm = this
axios.get(this.completeBookingurl + "/" + this.$route.params.userId).then(response => {
this.bookingTableComplete = response.data.data
this.bookingTableComplete = response.data
vm.makeCompletePagination(response.data)
})
},
@@ -169,7 +169,7 @@ export default {
this.loading_btn = true
axios.get(this.url).then(response => {
vm.loading_btn = false;
vm.bookingTable = response.data.data
vm.bookingTable = response.data
vm.$message({
showClose: true,
message: 'Booking is updated',
@@ -183,7 +183,7 @@ export default {
this.loading_btn = true
axios.get(this.completeBookingurl).then(response => {
vm.loading_btn = false;
vm.bookingTableComplete = response.data.data
vm.bookingTableComplete = response.data
})
},
makePagination(data){