|
@@ -5,7 +5,7 @@
|
|
|
:cardTitle="cardTitle || undefined"
|
|
|
:items="items"
|
|
|
:headers="headers"
|
|
|
- :loading="loading"
|
|
|
+ v-loading="loading"
|
|
|
:total="total"
|
|
|
:page-size="pageInfo.size"
|
|
|
:page-current="pageInfo.current"
|
|
@@ -117,6 +117,7 @@ export default {
|
|
|
entity: this.searchValues
|
|
|
})
|
|
|
}
|
|
|
+ this.loading = true
|
|
|
try {
|
|
|
const { data } = await getPayrollPage({
|
|
|
page: this.pageInfo,
|
|
@@ -126,6 +127,8 @@ export default {
|
|
|
this.total = data.total
|
|
|
} catch (error) {
|
|
|
this.$message.error(error)
|
|
|
+ } finally {
|
|
|
+ this.loading = false
|
|
|
}
|
|
|
},
|
|
|
onPageChange (index) {
|