mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
提交
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
<div v-if="examStatus==2" style="text-align: center;color:#6d6d6d; ">考试已结束</div>
|
||||
</div>
|
||||
<div v-else class="no-text">
|
||||
<span>您没有需要的考试</span>
|
||||
<span v-if="noExam">您没有需要的考试</span>
|
||||
</div>
|
||||
<div class="re-list" v-if="canExam">
|
||||
<p>历史记录</p>
|
||||
@@ -240,6 +240,7 @@ export default {
|
||||
taskId:'',//考试任务的id
|
||||
lastId:'',//最后一次提交的答卷
|
||||
canExam:false,//能否参加考试
|
||||
noExam:false,//不能参加考试
|
||||
tipText:'',//提示信息
|
||||
examStatus:0,//0表无,1表考试中,2表已结束
|
||||
btnText:'开始考试',
|
||||
@@ -301,6 +302,9 @@ export default {
|
||||
apiTestPaper.getTestInfo(this.examId).then(res=>{
|
||||
if(res.status==200){
|
||||
this.canExam = res.result.hasTask;
|
||||
if(!this.canExam) {
|
||||
this.noExam = true;
|
||||
}
|
||||
this.examStatus=res.result.examStatus;
|
||||
this.testPaper = res.result.exam;
|
||||
this.taskId=res.result.taskId;
|
||||
|
||||
Reference in New Issue
Block a user