From 6d08208a24e5e48380a67cca8b907590745e161a Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Fri, 5 Nov 2021 12:13:20 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8A=A0=E5=BF=AB=E5=80=92?=
=?UTF-8?q?=E8=AE=A1=E6=97=B6bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/assessment/list/index.vue | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/pages/assessment/list/index.vue b/src/pages/assessment/list/index.vue
index 76a1f3d..f119be2 100644
--- a/src/pages/assessment/list/index.vue
+++ b/src/pages/assessment/list/index.vue
@@ -5,7 +5,7 @@
-
-
+
{{ item.name }}
@@ -50,7 +50,7 @@
-
+
@@ -191,6 +191,7 @@ export default {
total: 0, // 总数
listData: [], // 表格数据
multipleSelection: [], // 多选
+ listLoading:false,// 列表加载
ticker: null // 倒计时定时器
};
},
@@ -252,7 +253,6 @@ export default {
if (item.status === 0 && item.type === 2) { // 待开始-定时发布
item.status = 1;
item.countDown = (new Date(item.stopTime).getTime() - new Date().getTime()) / 1000;
- console.log(item.countDown);
} else if (item.status === 1) {
item.status = 2;
}
@@ -263,6 +263,7 @@ export default {
}, 1000);
},
getData() {
+ this.listLoading = true;
this.listData.splice(0);
if (this.ticker) {
clearInterval(this.ticker);
@@ -302,8 +303,9 @@ export default {
}
});
this.beginTimer();
+ this.listLoading = false;
}).catch(err => {
- console.log(err);
+ this.listLoading = false;
});
},
initData() {