Commit af7d320b authored by zhengke's avatar zhengke

1

parent 985f4c6b
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
:sort="index" :sort="index"
:sortTotal="peaperDetail.Paper.GroupList.length" :sortTotal="peaperDetail.Paper.GroupList.length"
:isLast="isLast" :isLast="isLast"
:ExamStatus="ExamStatus"
v-if=" v-if="
item.QuestionTypeKey === 'single-number' && index === changeIndex item.QuestionTypeKey === 'single-number' && index === changeIndex
" "
...@@ -354,19 +355,20 @@ export default { ...@@ -354,19 +355,20 @@ export default {
Answer, Answer,
}, },
setup(props, context) { setup(props, context) {
let Gid = uni.getStorageSync("userInfo").Id; // let Gid = uni.getStorageSync("userInfo").Id;
let { refs } = getCurrentInstance(); let { refs } = getCurrentInstance();
let data = reactive({ let data = reactive({
time: 999, time: 999,
statusBarHeight: 0, statusBarHeight: 0,
// msg: { GuestId: 64, PaperId: 34, PublishId: 9 }, // msg: { GuestId: 64, PaperId: 34, PublishId: 9 },
msg: { GuestId: Gid, PaperId: 0, PublishId: 0 }, msg: { GuestId: 0, PaperId: 0, PublishId: 0,isShowAnswer:true},
peaperDetail: {}, peaperDetail: {},
changeIndex: 0, //大题序号 changeIndex: 0, //大题序号
isLast: false, //用于判断是否从后往前翻 isLast: false, //用于判断是否从后往前翻
isShowAnswer: false, //是否显示答题卡 isShowAnswer: false, //是否显示答题卡
Exam_Student_Id: 0, Exam_Student_Id: 0,
autoTimeStart: false, autoTimeStart: false,
ExamStatus:-1, //考试状态 判断是考试还是查看答案
}); });
let methods = { let methods = {
changeNumToHan, changeNumToHan,
...@@ -439,6 +441,9 @@ export default { ...@@ -439,6 +441,9 @@ export default {
}, },
onLoad(options) { onLoad(options) {
console.log(options, "options"); console.log(options, "options");
if(options.GuestId){
this.msg.GuestId = options.GuestId;
}
if (options.PaperId) { if (options.PaperId) {
this.msg.PaperId = options.PaperId; this.msg.PaperId = options.PaperId;
} }
...@@ -448,6 +453,9 @@ export default { ...@@ -448,6 +453,9 @@ 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;
} }
if (options.ExamStatus){
this.ExamStatus = options.ExamStatus;
}
this.getPaperDetail(); this.getPaperDetail();
}, },
}; };
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
:style="{ 'background-image': `url(${item.PicList[0]})` }" :style="{ 'background-image': `url(${item.PicList[0]})` }"
@click=" @click="
jumpPage( jumpPage(
`/pages/exam/examPaper?PaperId=${item.PaperId}&&Id=${item.Id}&&Exam_Student_Id=${item.Exam_Student_Id}` `/pages/exam/examPaper?GuestId=${indexData.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