From 4e8c20187ff6c9fc269784b4a3ab2222070cfb85 Mon Sep 17 00:00:00 2001
From: e <2432808546@qq.com>
Date: Tue, 30 Nov 2021 20:20:23 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=80=83=E6=A0=B8=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E5=80=92=E8=AE=A1=E6=97=B6=E4=B8=BA=E9=9B=B6=E8=87=AA?=
=?UTF-8?q?=E5=8A=A8=E7=BB=93=E6=9D=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/ass/list/index.vue | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/src/pages/ass/list/index.vue b/src/pages/ass/list/index.vue
index 8fa6d94..41817fc 100644
--- a/src/pages/ass/list/index.vue
+++ b/src/pages/ass/list/index.vue
@@ -78,7 +78,7 @@
- {{ scope.row.countDown | timeFilter }}
+ {{ timeFilter(scope.row) }}
@@ -244,19 +244,22 @@ export default {
this.getCourseData();
this.getClassData();
},
- filters: {
+ methods: {
timeFilter(countDown) {
- if (countDown > 0) {
- let h = Math.floor(countDown / (60 * 60));
- let m = Math.floor(countDown % (60 * 60) / 60);
- let s = Math.floor(countDown % (60 * 60) % 60);
+ if (countDown.countDown > 0) {
+ let h = Math.floor(countDown.countDown / (60 * 60));
+ let m = Math.floor(countDown.countDown % (60 * 60) / 60);
+ let s = Math.floor(countDown.countDown % (60 * 60) % 60);
return `${h > 9 ? h : `0${h}`}:${m > 9 ? m : `0${m}`}:${s > 9 ? s : `0${s}`}`;
} else {
+ if (countDown.status == 2){
+
+ }else{
+ countDown.status = 2
+ }
return "00:00:00";
}
- }
- },
- methods: {
+ },
beginTimer() {
this.ticker = setInterval(() => {
for (let i = 0; i < this.listData.length; i++) {