|
@@ -13,6 +13,7 @@
|
|
|
tooltip-effect="dark"
|
|
|
style="width: 100%"
|
|
|
border
|
|
|
+ v-loading="isLoading"
|
|
|
header-align="center"
|
|
|
:header-cell-style="{
|
|
|
background: '#E0EAFB',
|
|
@@ -131,7 +132,9 @@ export default {
|
|
|
// 总条数
|
|
|
total: 0,
|
|
|
// 当前页
|
|
|
- page: 1
|
|
|
+ page: 1,
|
|
|
+ isLoading: true,
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -151,6 +154,8 @@ export default {
|
|
|
},
|
|
|
// 获取数据
|
|
|
getData() {
|
|
|
+ this.isLoading = true;
|
|
|
+ this.tableData=[]
|
|
|
// 获取筛选框数据
|
|
|
let params = {
|
|
|
uid: this.userid,
|
|
@@ -164,10 +169,10 @@ export default {
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "selectVeidooType", params)
|
|
|
.then(res => {
|
|
|
+ // console.log(" 获取筛选数据", res);
|
|
|
+ this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
|
|
|
this.isLoading = false;
|
|
|
this.tableData = res.data[0];
|
|
|
- this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
|
|
|
- // console.log(" 获取筛选数据", res);
|
|
|
})
|
|
|
.catch(err => {
|
|
|
this.isLoading = false;
|