提交 17e492da 编写于 作者: zhentian.jia's avatar zhentian.jia

reset 页面数据

上级 ee8cc111
...@@ -114,6 +114,10 @@ export default { ...@@ -114,6 +114,10 @@ export default {
} }
}); });
}); });
this.$on("reset",() =>{
this.pageNo = 1;
this.pageSize = 10;
});
}, },
methods: { methods: {
setCardData(data) { setCardData(data) {
......
...@@ -107,6 +107,10 @@ export default { ...@@ -107,6 +107,10 @@ export default {
} }
}); });
}); });
this.$on("reset",() =>{
this.pageNo = 1;
this.pageSize = 10;
});
}, },
methods: { methods: {
setCardData(data) { setCardData(data) {
......
...@@ -446,6 +446,11 @@ export default { ...@@ -446,6 +446,11 @@ export default {
} }
); );
vm.tags = []; vm.tags = [];
if (this.activeName == "third") {
this.$refs.childCourse.$emit("reset");
} else if (this.activeName == "fourth") {
this.$refs.childExam.$emit("reset");
}
}, },
exportExcel() { exportExcel() {
this.dialogVisible = true; this.dialogVisible = true;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册