Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
向伟
educationStu
Commits
e86dddd6
Commit
e86dddd6
authored
Sep 14, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
30996af9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
46 deletions
+50
-46
examPaper.vue
src/pages/exam/examPaper.vue
+50
-46
No files found.
src/pages/exam/examPaper.vue
View file @
e86dddd6
...
...
@@ -25,18 +25,18 @@
</
template
>
</van-nav-bar>
<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"
>
<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
:startIndex=
"item.startIndex"
...
...
@@ -47,8 +47,10 @@
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isLast=
"isLast"
:isOperate=
"isOperate"
v-if=
"item.QuestionTypeKey === 'single-number' && index === changeIndex"
:isOperate=
"isOperate"
v-if=
"
item.QuestionTypeKey === 'single-number' && index === changeIndex
"
/>
<!-- 多选题 -->
<MultipleChoice
...
...
@@ -57,7 +59,7 @@
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isOperate=
"isOperate"
:isOperate=
"isOperate"
@
getBeforeTopic=
"getBeforeTopic()"
@
getAfterTopic=
"getAfterTopic()"
@
answerChange=
"getAnswerChange($event, index)"
...
...
@@ -70,7 +72,7 @@
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isOperate=
"isOperate"
:isOperate=
"isOperate"
@
getBeforeTopic=
"getBeforeTopic()"
@
getAfterTopic=
"getAfterTopic()"
@
answerChange=
"getAnswerChange($event, index)"
...
...
@@ -95,7 +97,7 @@
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isOperate=
"isOperate"
:isOperate=
"isOperate"
@
getBeforeTopic=
"getBeforeTopic()"
@
getAfterTopic=
"getAfterTopic()"
@
answerChange=
"getAnswerChange($event, index)"
...
...
@@ -124,7 +126,7 @@
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isOperate=
"isOperate"
:isOperate=
"isOperate"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
...
...
@@ -137,11 +139,13 @@
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isOperate=
"isOperate"
:isOperate=
"isOperate"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
v-if=
"item.QuestionTypeKey === 'short-answer' && index === changeIndex"
v-if=
"
item.QuestionTypeKey === 'short-answer' && index === changeIndex
"
/>
<!-- 名词解释 -->
<nounExplanation
...
...
@@ -150,7 +154,7 @@
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isOperate=
"isOperate"
:isOperate=
"isOperate"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
...
...
@@ -165,7 +169,7 @@
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isOperate=
"isOperate"
:isOperate=
"isOperate"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
...
...
@@ -180,7 +184,7 @@
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isOperate=
"isOperate"
:isOperate=
"isOperate"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
...
...
@@ -193,7 +197,7 @@
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isOperate=
"isOperate"
:isOperate=
"isOperate"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
...
...
@@ -244,7 +248,7 @@
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isOperate=
"isOperate"
:isOperate=
"isOperate"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
...
...
@@ -273,11 +277,13 @@
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isOperate=
"isOperate"
:isOperate=
"isOperate"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
v-if=
"item.QuestionTypeKey === 'sorting-problem' && index === changeIndex"
v-if=
"
item.QuestionTypeKey === 'sorting-problem' && index === changeIndex
"
/>
<!-- 连线题待完善 -->
<Connect
...
...
@@ -369,16 +375,16 @@ 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
,
//大题序号
isLast
:
false
,
//用于判断是否从后往前翻
isShowAnswer
:
false
,
//是否显示答题卡
Exam_Student_Id
:
0
,
autoTimeStart
:
false
,
isOperate
:
true
,
//考试状态 判断是考试还是查看答案
isOperate
:
true
,
//考试状态 判断是考试还是查看答案
});
let
methods
=
{
changeNumToHan
,
...
...
@@ -440,9 +446,7 @@ export default {
},
};
onMounted
(()
=>
{
getSystemInfo
((
res
)
=>
{
data
.
statusBarHeight
=
res
.
statusBarHeight
;
});
data
.
statusBarHeight
=
uni
.
getSystemInfoSync
().
statusBarHeight
;
});
return
{
...
toRefs
(
data
),
...
...
@@ -451,22 +455,22 @@ 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
&&
options
.
ExamStatus
==
1
)
{
this
.
isOperate
=
false
;
this
.
msg
.
isShowAnswer
=
true
;
}
if
(
options
.
ExamStatus
&&
options
.
ExamStatus
==
1
)
{
this
.
isOperate
=
false
;
this
.
msg
.
isShowAnswer
=
true
;
}
this
.
getPaperDetail
();
},
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment