提交 24c72359 编写于 作者: zhentian.jia's avatar zhentian.jia

数据重置

上级 6ddb87f7
......@@ -76,21 +76,7 @@ export default {
},
data() {
return {
cardData: [
// {
// title: '项目所有课程数',
// num: 0,
// unit: '门课程',
// },{
// title: '项目所有课程总时长',
// num: 0,
// unit: '分钟',
// },{
// title: '项目人均学习时长',
// num: 0,
// unit: '分钟',
// }
],
cardData: [],
tableData: [],
totalRows: 0,
projectId: '',
......@@ -118,6 +104,8 @@ export default {
this.$on("reset",() =>{
this.pageNo = 1;
this.pageSize = 10;
this.tableData = [];
this.cardData = [];
});
},
methods: {
......
......@@ -78,6 +78,10 @@ export default {
}
});
});
this.$on("reset", () => {
this.showData = false;
this.crowdData = {};
});
if (this.activeName == "second") {
// this.updateResize();
}
......
......@@ -73,18 +73,7 @@ export default {
return {
projectId: '',
tableData: [],
cardData: [
// {
// title: "项目所有考试数",
// num: 0,
// unit: "门考试"
// },
// {
// title: "项目所有考题数",
// num: 0,
// unit: "道题"
// }
],
cardData: [],
totalRows: 0, //数据总数
pageNo: 1, //当前是第几页
pageSize: 10, //页面总数
......@@ -113,6 +102,8 @@ export default {
this.$on("reset",() =>{
this.pageNo = 1;
this.pageSize = 10;
this.tableData = [];
this.cardData = [];
});
},
methods: {
......
......@@ -458,7 +458,11 @@ export default {
}
);
vm.tags = [];
if (this.activeName == "third") {
if (this.activeName == "first") {
this.$refs.childPart.$emit("reset");
} else if (this.activeName == "second") {
this.$refs.childCrowd.$emit("reset");
} else if (this.activeName == "third") {
this.$refs.childCourse.$emit("reset");
} else if (this.activeName == "fourth") {
this.$refs.childExam.$emit("reset");
......
......@@ -72,24 +72,7 @@ export default {
// 只有一个机构时显示人员完成情况
projectId: "",
finishDetail: [],
cardData: [
// {
// title: "应参与机构数",
// num: 0,
// },
// {
// title: "应参与人数",
// num: 0,
// },
// {
// title: "已参与人数",
// num: 0,
// },
// {
// title: "项目获证人数",
// num: 0,
// },
],
cardData: [],
showChart: false,
showTable: false,
showData: false,
......@@ -111,6 +94,13 @@ export default {
}
});
});
this.$on("reset", () => {
this.showData = false;
this.showChart = false;
this.showTable = false;
this.finishDetail = [];
this.cardData = [];
});
// if (this.activeName == "first") {
// this.updateResize();
// }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册