|
|
@@ -3,6 +3,16 @@
|
|
|
<div class="table-box">
|
|
|
<div class="block-title">
|
|
|
票种分组管理
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ :loading="loading"
|
|
|
+ :disabled="loading"
|
|
|
+ style="margin-right:10px"
|
|
|
+ @click="getList"
|
|
|
+ >
|
|
|
+ 刷新
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
style="margin-right:10px"
|
|
|
@@ -131,8 +141,8 @@ export default {
|
|
|
this.loading = true
|
|
|
let params = JSON.parse(JSON.stringify(this.form))
|
|
|
getTicketTypeGroupList(params).then(res => {
|
|
|
- this.tableData = res?.data?.records || []
|
|
|
- this.total = res?.data?.total || 0
|
|
|
+ this.tableData = Array.isArray(res?.data) ? res.data : (res?.data?.records || [])
|
|
|
+ this.total = res?.data?.total || this.tableData.length
|
|
|
}).finally(() => {
|
|
|
this.loading = false
|
|
|
})
|