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:
@@ -137,8 +137,8 @@ export default {
|
||||
status: null,
|
||||
bookingTable: [],
|
||||
bookingTableComplete: [],
|
||||
url: 'api/admin/booking',
|
||||
completeBookingurl : "api/admin-complete-booking",
|
||||
url: '/api/admin/booking',
|
||||
completeBookingurl : "/api/admin-complete-booking",
|
||||
pagination: [],
|
||||
completePagination: [],
|
||||
|
||||
@@ -152,14 +152,14 @@ export default {
|
||||
methods: {
|
||||
getBooking(){
|
||||
let $this = this
|
||||
axios.get("/"+this.url+"/"+ this.$route.params.userId).then(response => {
|
||||
axios.get(this.url+"/"+ this.$route.params.userId).then(response => {
|
||||
this.bookingTable = response.data.data;
|
||||
$this.makePagination(response.data);
|
||||
})
|
||||
},
|
||||
getBookingTableComplete(){
|
||||
let $this = this
|
||||
axios.get("/"+this.completeBookingurl + "/" + this.$route.params.userId).then(response => {
|
||||
axios.get(this.completeBookingurl + "/" + this.$route.params.userId).then(response => {
|
||||
this.bookingTableComplete = response.data.data
|
||||
$this.makeCompletePagination(response.data)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user