|
|
@@ -115,6 +115,8 @@ export default {
|
|
|
examQuestionsNum: 0,
|
|
|
examCodeQuestionsNum: 0,
|
|
|
inviteCode: "",
|
|
|
+ examList: [],
|
|
|
+ totalNum: 0
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -137,6 +139,18 @@ export default {
|
|
|
},
|
|
|
|
|
|
mounted() {
|
|
|
+ this.$apis.getExamListByCurrentStudent().then(_res =>{
|
|
|
+ console.log(_res);
|
|
|
+ this.examList=_res.data.data.result.examVOList;
|
|
|
+ this.totalNum = _res.data.data.result.totalNum;
|
|
|
+ const that = this;
|
|
|
+ this.examList.forEach(function (exam){
|
|
|
+ if(exam.examId === that.examInfo.examId){
|
|
|
+ that.examInfo.isJoined = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ console.log(this.examInfo);
|
|
|
},
|
|
|
|
|
|
updated() {
|