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

1

parent 1ae80a50
...@@ -345,7 +345,11 @@ ...@@ -345,7 +345,11 @@
/> />
</view> </view>
<view class="answer-con" v-if="isShowNotice"> <view class="answer-con" v-if="isShowNotice">
<examNotice :msg="msg" :ExamStatus="ExamStatus" @hideNotice="hideNotice" /> <examNotice
:msg="msg"
:ExamStatus="ExamStatus"
@hideNotice="hideNotice"
/>
</view> </view>
<van-toast id="van-toast" /> <van-toast id="van-toast" />
</view> </view>
...@@ -458,7 +462,7 @@ export default { ...@@ -458,7 +462,7 @@ export default {
if (res.Code == 1) { if (res.Code == 1) {
data.peaperDetail = res.Data; data.peaperDetail = res.Data;
this.SubmitTimes = res.Data.Publish.SubmitTimes; 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 { ...@@ -578,7 +582,7 @@ export default {
...methods, ...methods,
}; };
}, },
async onLoad(options) { async onLoad(options) {
if (options.GuestId) { if (options.GuestId) {
this.msg.GuestId = options.GuestId; this.msg.GuestId = options.GuestId;
} }
...@@ -591,23 +595,26 @@ export default { ...@@ -591,23 +595,26 @@ export default {
if (options.Exam_Student_Id) { if (options.Exam_Student_Id) {
this.Exam_Student_Id = 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) { if (options.ExamStatus) {
this.ExamStatus = options.ExamStatus; this.ExamStatus = options.ExamStatus;
if(this.ExamStatus==3){ if (
this.msg.isShowAnswer = true; this.ExamStatus == 2 ||
} this.ExamStatus == 1 ||
if(this.ExamStatus == 2||this.ExamStatus==1||this.ExamStatus==4){ this.ExamStatus == 4
this.isShowNotice = true; ) {
this.isOperate = true; this.isShowNotice = true;
this.autoTimeStart = true; this.isOperate = true;
} this.autoTimeStart = true;
if(this.ExamStatus == 3||this.ExamStatus==5){ }
this.isOperate = false if (this.ExamStatus == 3 || this.ExamStatus == 5) {
this.msg.isShowAnswer = true; this.msg.isShowAnswer = true;
} this.isShowAnswerSee = true;
this.isOperate = false;
this.msg.isShowAnswer = true;
}
} }
await this.getPaperDetail(); await this.getPaperDetail();
if (options.showScore) { if (options.showScore) {
this.isShowAnswer = true; this.isShowAnswer = true;
this.isShowAnswerSee = 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