From ed3ddcae85e27c492cc19577ba0e2f328796df0a Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Fri, 5 Nov 2021 11:50:19 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=8A=B6=E6=80=81=E4=BC=9A?=
=?UTF-8?q?=E8=B7=B3=E5=8A=A8bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/assessment/add/index.vue | 4 ++--
src/pages/assessment/list/index.vue | 8 ++++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/pages/assessment/add/index.vue b/src/pages/assessment/add/index.vue
index f7f37d1..3800366 100644
--- a/src/pages/assessment/add/index.vue
+++ b/src/pages/assessment/add/index.vue
@@ -311,7 +311,7 @@ export default {
this.allCheckedNodes = this.allCheckedNodes.filter(i => (i.level === 3 && i.id !== tag.id) || (i.level === 4 && i.parentId !== tag.id));
},
handleCheck(data, checked) { // 当复选框被点击的时候触发
- console.log(checked);
+ // console.log(checked);
// 全选和半选状态下的班级都显示在标签
let checkedClass = checked.checkedNodes.filter(i => i.level === 3);
@@ -355,7 +355,7 @@ export default {
i.nodeKey = `${i.id}-${new Date().getTime()}`;
i.leaf = false;
}
- console.log(JSON.stringify(i));
+ // console.log(JSON.stringify(i));
result.push(i);
});
this.$nextTick(() => {
diff --git a/src/pages/assessment/list/index.vue b/src/pages/assessment/list/index.vue
index ed6f420..76a1f3d 100644
--- a/src/pages/assessment/list/index.vue
+++ b/src/pages/assessment/list/index.vue
@@ -90,12 +90,12 @@
-
+
{{ status[scope.row.status] }}
-
+
启动
修改
@@ -252,15 +252,18 @@ 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;
}
}
+ item.show = true;
this.$set(this.listData, i, item);
}
}, 1000);
},
getData() {
+ this.listData.splice(0);
if (this.ticker) {
clearInterval(this.ticker);
}
@@ -275,6 +278,7 @@ export default {
this.listData = res.list;
this.total = res.total;
this.listData.forEach(i => {
+ i.show = false;
if (i.status === 2) { // 已结束
i.countDown = 0;
} else {