Commit e86dddd6 authored by 罗超's avatar 罗超

1

parent 30996af9
...@@ -25,18 +25,18 @@ ...@@ -25,18 +25,18 @@
</template> </template>
</van-nav-bar> </van-nav-bar>
<view class="exam-con" v-if="!isShowAnswer"> <view class="exam-con" v-if="!isShowAnswer">
<view v-for="(item, index) in peaperDetail.Paper.GroupList" :key="index">
<i <i
class="iconfont icon-caidanzu answerSheet" class="iconfont icon-caidanzu answerSheet"
style=" style="
position: absolute; position: absolute;
right: 15px; right: 30rpx;
z-index: 999; z-index: 999;
margin-top: 13px; margin-top: 26rpx;
" "
:style="{ top: statusBarHeight + 65 }" :style="{ top: `calc(${statusBarHeight}px + 105rpx)` }"
@click="showAnswerSheet" @click="showAnswerSheet"
></i> ></i>
<view v-for="(item, index) in peaperDetail.Paper.GroupList" :key="index">
<!-- 数字单选题 --> <!-- 数字单选题 -->
<SingleChoiceNumber <SingleChoiceNumber
:startIndex="item.startIndex" :startIndex="item.startIndex"
...@@ -48,7 +48,9 @@ ...@@ -48,7 +48,9 @@
:sortTotal="peaperDetail.Paper.GroupList.length" :sortTotal="peaperDetail.Paper.GroupList.length"
:isLast="isLast" :isLast="isLast"
:isOperate="isOperate" :isOperate="isOperate"
v-if="item.QuestionTypeKey === 'single-number' && index === changeIndex" v-if="
item.QuestionTypeKey === 'single-number' && index === changeIndex
"
/> />
<!-- 多选题 --> <!-- 多选题 -->
<MultipleChoice <MultipleChoice
...@@ -141,7 +143,9 @@ ...@@ -141,7 +143,9 @@
@getAfterTopic="getAfterTopic()" @getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()" @getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)" @answerChange="getAnswerChange($event, index)"
v-if="item.QuestionTypeKey === 'short-answer' && index === changeIndex" v-if="
item.QuestionTypeKey === 'short-answer' && index === changeIndex
"
/> />
<!-- 名词解释 --> <!-- 名词解释 -->
<nounExplanation <nounExplanation
...@@ -277,7 +281,9 @@ ...@@ -277,7 +281,9 @@
@getAfterTopic="getAfterTopic()" @getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()" @getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)" @answerChange="getAnswerChange($event, index)"
v-if="item.QuestionTypeKey === 'sorting-problem' && index === changeIndex" v-if="
item.QuestionTypeKey === 'sorting-problem' && index === changeIndex
"
/> />
<!-- 连线题待完善 --> <!-- 连线题待完善 -->
<Connect <Connect
...@@ -370,7 +376,7 @@ export default { ...@@ -370,7 +376,7 @@ export default {
time: 999, time: 999,
statusBarHeight: 0, statusBarHeight: 0,
// msg: { GuestId: 0, PaperId: 0, PublishId: 0}, // msg: { GuestId: 0, PaperId: 0, PublishId: 0},
msg: { GuestId: 20, PaperId: 9, PublishId: 1 ,isShowAnswer: true}, msg: { GuestId: 20, PaperId: 9, PublishId: 1, isShowAnswer: true },
peaperDetail: {}, peaperDetail: {},
changeIndex: 0, //大题序号 changeIndex: 0, //大题序号
...@@ -378,7 +384,7 @@ export default { ...@@ -378,7 +384,7 @@ export default {
isShowAnswer: false, //是否显示答题卡 isShowAnswer: false, //是否显示答题卡
Exam_Student_Id: 0, Exam_Student_Id: 0,
autoTimeStart: false, autoTimeStart: false,
isOperate:true, //考试状态 判断是考试还是查看答案 isOperate: true, //考试状态 判断是考试还是查看答案
}); });
let methods = { let methods = {
changeNumToHan, changeNumToHan,
...@@ -440,9 +446,7 @@ export default { ...@@ -440,9 +446,7 @@ export default {
}, },
}; };
onMounted(() => { onMounted(() => {
getSystemInfo((res) => { data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
data.statusBarHeight = res.statusBarHeight;
});
}); });
return { return {
...toRefs(data), ...toRefs(data),
...@@ -463,9 +467,9 @@ export default { ...@@ -463,9 +467,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&&options.ExamStatus==1){ if (options.ExamStatus && options.ExamStatus == 1) {
this.isOperate = false; this.isOperate = false;
this.msg.isShowAnswer=true; this.msg.isShowAnswer = true;
} }
this.getPaperDetail(); this.getPaperDetail();
}, },
......
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