|
@@ -31,6 +31,7 @@ export default {
|
|
name: "EcsOnlineExamResultList",
|
|
name: "EcsOnlineExamResultList",
|
|
props: {
|
|
props: {
|
|
examStudentId: Number,
|
|
examStudentId: Number,
|
|
|
|
+ popperShow: Boolean,
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -38,23 +39,27 @@ export default {
|
|
results: [],
|
|
results: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- async mounted() {
|
|
|
|
- try {
|
|
|
|
- const results = (await this.$http.get(
|
|
|
|
- "/api/ecs_oe_student/examScore/queryObjectiveScoreList?examStudentId=" +
|
|
|
|
- this.examStudentId
|
|
|
|
- )).data;
|
|
|
|
- this.results = (results || [])
|
|
|
|
- .sort((a, b) => b.examOrder - a.examOrder)
|
|
|
|
- .slice(0, 10);
|
|
|
|
- this.loading = false;
|
|
|
|
- } catch (error) {
|
|
|
|
- this.$Message.error({
|
|
|
|
- content: "查询客观分列表出错!",
|
|
|
|
- duration: 15,
|
|
|
|
- closable: true,
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ watch: {
|
|
|
|
+ async popperShow() {
|
|
|
|
+ if (this.popperShow) {
|
|
|
|
+ try {
|
|
|
|
+ const results = (await this.$http.get(
|
|
|
|
+ "/api/ecs_oe_student/examScore/queryObjectiveScoreList?examStudentId=" +
|
|
|
|
+ this.examStudentId
|
|
|
|
+ )).data;
|
|
|
|
+ this.results = (results || [])
|
|
|
|
+ .sort((a, b) => b.examOrder - a.examOrder)
|
|
|
|
+ .slice(0, 10);
|
|
|
|
+ this.loading = false;
|
|
|
|
+ } catch (error) {
|
|
|
|
+ this.$Message.error({
|
|
|
|
+ content: "查询客观分列表出错!",
|
|
|
|
+ duration: 15,
|
|
|
|
+ closable: true,
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|