commentCancelBooking

This commit is contained in:
lonetrinity
2018-10-26 10:52:39 +08:00
parent 582bbd165c
commit 5e15a743af
+16 -16
View File
@@ -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 => {