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">
<i
class="iconfont icon-caidanzu answerSheet"
style="
position: absolute;
right: 30rpx;
z-index: 999;
margin-top: 26rpx;
"
:style="{ top: `calc(${statusBarHeight}px + 105rpx)` }"
@click="showAnswerSheet"
></i>
<view v-for="(item, index) in peaperDetail.Paper.GroupList" :key="index"> <view v-for="(item, index) in peaperDetail.Paper.GroupList" :key="index">
<i
class="iconfont icon-caidanzu answerSheet"
style="
position: absolute;
right: 15px;
z-index: 999;
margin-top: 13px;
"
:style="{ top: statusBarHeight + 65 }"
@click="showAnswerSheet"
></i>
<!-- 数字单选题 --> <!-- 数字单选题 -->
<SingleChoiceNumber <SingleChoiceNumber
:startIndex="item.startIndex" :startIndex="item.startIndex"
...@@ -47,8 +47,10 @@ ...@@ -47,8 +47,10 @@
:sort="index" :sort="index"
: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
...@@ -57,7 +59,7 @@ ...@@ -57,7 +59,7 @@
:isLast="isLast" :isLast="isLast"
:sort="index" :sort="index"
:sortTotal="peaperDetail.Paper.GroupList.length" :sortTotal="peaperDetail.Paper.GroupList.length"
:isOperate="isOperate" :isOperate="isOperate"
@getBeforeTopic="getBeforeTopic()" @getBeforeTopic="getBeforeTopic()"
@getAfterTopic="getAfterTopic()" @getAfterTopic="getAfterTopic()"
@answerChange="getAnswerChange($event, index)" @answerChange="getAnswerChange($event, index)"
...@@ -70,7 +72,7 @@ ...@@ -70,7 +72,7 @@
:isLast="isLast" :isLast="isLast"
:sort="index" :sort="index"
:sortTotal="peaperDetail.Paper.GroupList.length" :sortTotal="peaperDetail.Paper.GroupList.length"
:isOperate="isOperate" :isOperate="isOperate"
@getBeforeTopic="getBeforeTopic()" @getBeforeTopic="getBeforeTopic()"
@getAfterTopic="getAfterTopic()" @getAfterTopic="getAfterTopic()"
@answerChange="getAnswerChange($event, index)" @answerChange="getAnswerChange($event, index)"
...@@ -95,7 +97,7 @@ ...@@ -95,7 +97,7 @@
:isLast="isLast" :isLast="isLast"
:sort="index" :sort="index"
:sortTotal="peaperDetail.Paper.GroupList.length" :sortTotal="peaperDetail.Paper.GroupList.length"
:isOperate="isOperate" :isOperate="isOperate"
@getBeforeTopic="getBeforeTopic()" @getBeforeTopic="getBeforeTopic()"
@getAfterTopic="getAfterTopic()" @getAfterTopic="getAfterTopic()"
@answerChange="getAnswerChange($event, index)" @answerChange="getAnswerChange($event, index)"
...@@ -124,7 +126,7 @@ ...@@ -124,7 +126,7 @@
:isLast="isLast" :isLast="isLast"
:sort="index" :sort="index"
:sortTotal="peaperDetail.Paper.GroupList.length" :sortTotal="peaperDetail.Paper.GroupList.length"
:isOperate="isOperate" :isOperate="isOperate"
@getAfterTopic="getAfterTopic()" @getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()" @getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)" @answerChange="getAnswerChange($event, index)"
...@@ -137,11 +139,13 @@ ...@@ -137,11 +139,13 @@
:isLast="isLast" :isLast="isLast"
:sort="index" :sort="index"
:sortTotal="peaperDetail.Paper.GroupList.length" :sortTotal="peaperDetail.Paper.GroupList.length"
:isOperate="isOperate" :isOperate="isOperate"
@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
...@@ -150,7 +154,7 @@ ...@@ -150,7 +154,7 @@
:isLast="isLast" :isLast="isLast"
:sort="index" :sort="index"
:sortTotal="peaperDetail.Paper.GroupList.length" :sortTotal="peaperDetail.Paper.GroupList.length"
:isOperate="isOperate" :isOperate="isOperate"
@getAfterTopic="getAfterTopic()" @getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()" @getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)" @answerChange="getAnswerChange($event, index)"
...@@ -165,7 +169,7 @@ ...@@ -165,7 +169,7 @@
:isLast="isLast" :isLast="isLast"
:sort="index" :sort="index"
:sortTotal="peaperDetail.Paper.GroupList.length" :sortTotal="peaperDetail.Paper.GroupList.length"
:isOperate="isOperate" :isOperate="isOperate"
@getAfterTopic="getAfterTopic()" @getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()" @getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)" @answerChange="getAnswerChange($event, index)"
...@@ -180,7 +184,7 @@ ...@@ -180,7 +184,7 @@
:isLast="isLast" :isLast="isLast"
:sort="index" :sort="index"
:sortTotal="peaperDetail.Paper.GroupList.length" :sortTotal="peaperDetail.Paper.GroupList.length"
:isOperate="isOperate" :isOperate="isOperate"
@getAfterTopic="getAfterTopic()" @getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()" @getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)" @answerChange="getAnswerChange($event, index)"
...@@ -193,7 +197,7 @@ ...@@ -193,7 +197,7 @@
:isLast="isLast" :isLast="isLast"
:sort="index" :sort="index"
:sortTotal="peaperDetail.Paper.GroupList.length" :sortTotal="peaperDetail.Paper.GroupList.length"
:isOperate="isOperate" :isOperate="isOperate"
@getAfterTopic="getAfterTopic()" @getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()" @getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)" @answerChange="getAnswerChange($event, index)"
...@@ -244,7 +248,7 @@ ...@@ -244,7 +248,7 @@
:isLast="isLast" :isLast="isLast"
:sort="index" :sort="index"
:sortTotal="peaperDetail.Paper.GroupList.length" :sortTotal="peaperDetail.Paper.GroupList.length"
:isOperate="isOperate" :isOperate="isOperate"
@getAfterTopic="getAfterTopic()" @getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()" @getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)" @answerChange="getAnswerChange($event, index)"
...@@ -273,11 +277,13 @@ ...@@ -273,11 +277,13 @@
:isLast="isLast" :isLast="isLast"
:sort="index" :sort="index"
:sortTotal="peaperDetail.Paper.GroupList.length" :sortTotal="peaperDetail.Paper.GroupList.length"
:isOperate="isOperate" :isOperate="isOperate"
@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
...@@ -369,16 +375,16 @@ export default { ...@@ -369,16 +375,16 @@ export default {
let data = reactive({ let data = reactive({
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, //大题序号
isLast: false, //用于判断是否从后往前翻 isLast: false, //用于判断是否从后往前翻
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),
...@@ -451,22 +455,22 @@ export default { ...@@ -451,22 +455,22 @@ export default {
}, },
onLoad(options) { onLoad(options) {
console.log(options, "options"); console.log(options, "options");
// if(options.GuestId){ // if(options.GuestId){
// this.msg.GuestId = options.GuestId; // this.msg.GuestId = options.GuestId;
// } // }
// if (options.PaperId) { // if (options.PaperId) {
// this.msg.PaperId = options.PaperId; // this.msg.PaperId = options.PaperId;
// } // }
// if (options.Id) { // if (options.Id) {
// this.msg.PublishId = options.Id; // this.msg.PublishId = options.Id;
// } // }
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