From 027c1fcde746ddfea5af9d9e35cf3ac1d12c0bca Mon Sep 17 00:00:00 2001
From: panzy <225@qq.com>
Date: Sat, 21 May 2022 08:39:52 +0800
Subject: [PATCH] 表格添加loding转圈
---
src/views/troubleshooting/index.vue | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/views/troubleshooting/index.vue b/src/views/troubleshooting/index.vue
index 8bd210f..7117eef 100644
--- a/src/views/troubleshooting/index.vue
+++ b/src/views/troubleshooting/index.vue
@@ -90,7 +90,7 @@
</el-radio-group>
</el-col>
</el-row>
- <el-table :data="tableData" style="width: 100%" @selection-change="handleSelectionChange">
+ <el-table :data="tableData" style="width: 100%" @selection-change="handleSelectionChange" v-loading="listLoading">
<el-table-column type="selection" width="55" align="center"></el-table-column>
<el-table-column v-if="listQuery.type==2" prop="communityname" label="会议单位" align="center" width="120"></el-table-column>
<el-table-column prop="CONFERENCE_TIME" label="召开时间" :formatter="formatColumnDate" align="center" width="120"></el-table-column>
@@ -260,8 +260,10 @@
getPageList() {
this.listQuery.page = 1;
this.checkTime();
+ this.listLoading = true
getPageList(this.listQuery).then((res) => {
- if (res.data.ok == 1) {
+ this.listLoading = false
+ if (res.data.ok == 1) {
this.tableData = res.data.data.items;
this.recordTotal = res.data.data.total;
} else {
--
Gitblit v1.9.2