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 {