Commit 71f3606c authored by 罗超's avatar 罗超

1

parent 1ae80a50
......@@ -345,7 +345,11 @@
/>
</view>
<view class="answer-con" v-if="isShowNotice">
<examNotice :msg="msg" :ExamStatus="ExamStatus" @hideNotice="hideNotice" />
<examNotice
:msg="msg"
:ExamStatus="ExamStatus"
@hideNotice="hideNotice"
/>
</view>
<van-toast id="van-toast" />
</view>
......@@ -458,7 +462,7 @@ export default {
if (res.Code == 1) {
data.peaperDetail = res.Data;
this.SubmitTimes = res.Data.Publish.SubmitTimes;
data.time = res.Data.Publish.ExamTimes * 60 * 1000;
data.time = res.Data.Publish.ExamTimes * 60 * 1000;
}
}
},
......@@ -578,7 +582,7 @@ export default {
...methods,
};
},
async onLoad(options) {
async onLoad(options) {
if (options.GuestId) {
this.msg.GuestId = options.GuestId;
}
......@@ -591,23 +595,26 @@ export default {
if (options.Exam_Student_Id) {
this.Exam_Student_Id = options.Exam_Student_Id;
}
//ExamStatus 1未开始 2已开始 3已考试 4缺考 5已阅卷
//ExamStatus 1未开始 2已开始 3已考试 4缺考 5已阅卷
if (options.ExamStatus) {
this.ExamStatus = options.ExamStatus;
if(this.ExamStatus==3){
this.msg.isShowAnswer = true;
}
if(this.ExamStatus == 2||this.ExamStatus==1||this.ExamStatus==4){
this.isShowNotice = true;
this.isOperate = true;
this.autoTimeStart = true;
}
if(this.ExamStatus == 3||this.ExamStatus==5){
this.isOperate = false
this.msg.isShowAnswer = true;
}
this.ExamStatus = options.ExamStatus;
if (
this.ExamStatus == 2 ||
this.ExamStatus == 1 ||
this.ExamStatus == 4
) {
this.isShowNotice = true;
this.isOperate = true;
this.autoTimeStart = true;
}
if (this.ExamStatus == 3 || this.ExamStatus == 5) {
this.msg.isShowAnswer = true;
this.isShowAnswerSee = true;
this.isOperate = false;
this.msg.isShowAnswer = true;
}
}
await this.getPaperDetail();
await this.getPaperDetail();
if (options.showScore) {
this.isShowAnswer = true;
this.isShowAnswerSee = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment