fix user bookings pagination bug

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