Commit 97a4fe5b authored by zhengke's avatar zhengke

修改

parent 8e314107
This diff is collapsed.
......@@ -47,10 +47,7 @@
:sort="index"
:sortTotal="peaperDetail.Paper.GroupList.length"
:isLast="isLast"
:ExamStatus="ExamStatus"
v-if="
item.QuestionTypeKey === 'single-number' && index === changeIndex
"
v-if="item.QuestionTypeKey === 'single-number' && index === changeIndex"
/>
<!-- 多选题 -->
<MultipleChoice
......@@ -71,6 +68,7 @@
:isLast="isLast"
:sort="index"
:sortTotal="peaperDetail.Paper.GroupList.length"
:isOperate="isOperate"
@getBeforeTopic="getBeforeTopic()"
@getAfterTopic="getAfterTopic()"
@answerChange="getAnswerChange($event, index)"
......@@ -364,8 +362,8 @@ export default {
let data = reactive({
time: 999,
statusBarHeight: 0,
msg: { GuestId: 0, PaperId: 0, PublishId: 0},
// msg: { GuestId: 20, PaperId: 9, PublishId: 1,isShowAnswer:true},
// msg: { GuestId: 0, PaperId: 0, PublishId: 0},
msg: { GuestId: 20, PaperId: 9, PublishId: 1 ,isShowAnswer: true},
peaperDetail: {},
changeIndex: 0, //大题序号
......@@ -373,7 +371,7 @@ export default {
isShowAnswer: false, //是否显示答题卡
Exam_Student_Id: 0,
autoTimeStart: false,
ExamStatus:-1, //考试状态 判断是考试还是查看答案
isOperate:true, //考试状态 判断是考试还是查看答案
});
let methods = {
changeNumToHan,
......@@ -446,20 +444,21 @@ export default {
},
onLoad(options) {
console.log(options, "options");
if(options.GuestId){
this.msg.GuestId = options.GuestId;
}
if (options.PaperId) {
this.msg.PaperId = options.PaperId;
}
if (options.Id) {
this.msg.PublishId = options.Id;
}
// if(options.GuestId){
// this.msg.GuestId = options.GuestId;
// }
// if (options.PaperId) {
// this.msg.PaperId = options.PaperId;
// }
// if (options.Id) {
// this.msg.PublishId = options.Id;
// }
if (options.Exam_Student_Id) {
this.Exam_Student_Id = options.Exam_Student_Id;
}
if (options.ExamStatus){
this.ExamStatus = options.ExamStatus;
if (options.ExamStatus&&options.ExamStatus==1){
this.isOperate = false;
this.msg.isShowAnswer=true;
}
this.getPaperDetail();
},
......
......@@ -119,7 +119,7 @@
:style="{ 'background-image': `url(${item.PicList[0]})` }"
@click="
jumpPage(
`/pages/exam/examPaper?GuestId=${indexData.GuestId}&&PaperId=${item.PaperId}&&Id=${item.Id}&&Exam_Student_Id=${item.Exam_Student_Id}&&ExamStatus=${item.ExamStatus}`
`/pages/exam/examPaper?GuestId=${item.GuestId}&&PaperId=${item.PaperId}&&Id=${item.Id}&&Exam_Student_Id=${item.Exam_Student_Id}&&ExamStatus=${item.ExamStatus}`
)
"
>
......
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