mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 12:34:13 +00:00
updated refresh button
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<div align="right">
|
||||
<el-button :loading="loading_btn" type="primary" size="mini" @click="RefreshBooking()">Refresh</el-button>
|
||||
<el-button :loading="loading_btn" type="primary" size="mini" @click="RefreshBooking(); RefreshBookingTableComplete()">Refresh</el-button>
|
||||
</div>
|
||||
|
||||
<!-- Booking Table -->
|
||||
@@ -176,6 +176,14 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
RefreshBookingTableComplete() {
|
||||
let $this = this
|
||||
this.loading_btn = true
|
||||
axios.get(this.completeBookingurl).then(response => {
|
||||
this.loading_btn = false;
|
||||
this.bookingTableComplete = response.data.data
|
||||
})
|
||||
},
|
||||
makePagination(data){
|
||||
let pagination ={
|
||||
current_page: data.current_page,
|
||||
|
||||
@@ -278,7 +278,7 @@
|
||||
<br>
|
||||
<hr>
|
||||
<div align="right">
|
||||
<el-button :loading="loading_btn" type="primary" size="mini" @click="RefreshBooking()">Refresh</el-button></div>
|
||||
<el-button :loading="loading_btn" type="primary" size="mini" @click="RefreshBooking(); RefreshBookingTableComplete()">Refresh</el-button></div>
|
||||
<!-- Booking Table -->
|
||||
|
||||
<el-tabs type="border-card" class="table-switch">
|
||||
@@ -582,6 +582,14 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
RefreshBookingTableComplete() {
|
||||
let $this = this
|
||||
this.loading_btn = true
|
||||
axios.get(this.completeBookingurl).then(response => {
|
||||
this.loading_btn = false;
|
||||
this.bookingTableComplete = response.data.data
|
||||
})
|
||||
},
|
||||
makePagination(data){
|
||||
let pagination ={
|
||||
current_page: data.current_page,
|
||||
|
||||
Reference in New Issue
Block a user