mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
fix user bookings pagination bug
This commit is contained in:
@@ -151,27 +151,24 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getBooking(){
|
||||
let $this = this
|
||||
axios.get(this.url+"/"+ this.$route.params.userId).then(response => {
|
||||
vm.bookingTable = response.data.data;
|
||||
$this.makePagination(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 => {
|
||||
vm.bookingTableComplete = response.data.data
|
||||
console.log(vm.bookingTableComplete);
|
||||
vm.makeCompletePagination(response.data)
|
||||
this.bookingTableComplete = response.data.data
|
||||
console.log(this.bookingTableComplete);
|
||||
this.makeCompletePagination(response.data)
|
||||
})
|
||||
},
|
||||
RefreshBooking() {
|
||||
let vm = this
|
||||
this.loading_btn = true
|
||||
axios.get(this.url).then(response => {
|
||||
vm.loading_btn = false;
|
||||
vm.bookingTable = response.data.data
|
||||
vm.$message({
|
||||
this.loading_btn = false;
|
||||
this.bookingTable = response.data.data
|
||||
this.$message({
|
||||
showClose: true,
|
||||
message: 'Booking is updated',
|
||||
type: 'success',
|
||||
@@ -180,11 +177,10 @@ export default {
|
||||
})
|
||||
},
|
||||
RefreshBookingTableComplete() {
|
||||
let vm = this
|
||||
this.loading_btn = true
|
||||
axios.get(this.completeBookingurl).then(response => {
|
||||
vm.loading_btn = false;
|
||||
vm.bookingTableComplete = response.data.data
|
||||
this.loading_btn = false;
|
||||
this.bookingTableComplete = response.data.data
|
||||
})
|
||||
},
|
||||
makePagination(data){
|
||||
|
||||
Reference in New Issue
Block a user