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

数据重置

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