mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
commentCancelBooking
This commit is contained in:
@@ -514,7 +514,7 @@ export default {
|
||||
dialogFormVisible1: false,
|
||||
formLabelWidth: '0px',
|
||||
bookingTable: [],
|
||||
cancelledBooking: [],
|
||||
// cancelledBooking: [],
|
||||
bookingTableComplete: [],
|
||||
url: 'api/booking',
|
||||
completeBookingurl : "api/user-complete-booking",
|
||||
@@ -537,7 +537,7 @@ export default {
|
||||
},
|
||||
mounted () {
|
||||
this.getBooking()
|
||||
this.getCancelledBookings()
|
||||
// this.getCancelledBookings()
|
||||
this.initBooking()
|
||||
this.getRate()
|
||||
this.getBookingTableComplete()
|
||||
@@ -581,20 +581,20 @@ export default {
|
||||
$this.makePagination(response.data)
|
||||
})
|
||||
},
|
||||
getCancelledBookings(){
|
||||
let $this = this
|
||||
axios.get("booking/cancelled/list").then(response => {
|
||||
this.cancelledBooking= response.data.data
|
||||
$this.makePagination(response.data)
|
||||
})
|
||||
},
|
||||
cancelBooking(id){
|
||||
console.log(id)
|
||||
let $this = this
|
||||
axios.post("api/booking/"+id+"/cancel").then(response => {
|
||||
this.getBooking();
|
||||
})
|
||||
},
|
||||
// getCancelledBookings(){
|
||||
// let $this = this
|
||||
// axios.get("booking/cancelled/list").then(response => {
|
||||
// this.cancelledBooking= response.data.data
|
||||
// $this.makePagination(response.data)
|
||||
// })
|
||||
// },
|
||||
// cancelBooking(id){
|
||||
// console.log(id)
|
||||
// let $this = this
|
||||
// axios.post("api/booking/"+id+"/cancel").then(response => {
|
||||
// this.getBooking();
|
||||
// })
|
||||
// },
|
||||
getBookingTableComplete(){
|
||||
let $this = this
|
||||
axios.get(this.completeBookingurl).then(response => {
|
||||
|
||||
Reference in New Issue
Block a user