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
97a4fe5b
Commit
97a4fe5b
authored
Sep 13, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
8e314107
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
271 additions
and
237 deletions
+271
-237
SingleChoice.vue
src/components/subject/SingleChoice.vue
+253
-218
examPaper.vue
src/pages/exam/examPaper.vue
+17
-18
index.vue
src/pages/index/index.vue
+1
-1
No files found.
src/components/subject/SingleChoice.vue
View file @
97a4fe5b
This diff is collapsed.
Click to expand it.
src/pages/exam/examPaper.vue
View file @
97a4fe5b
...
@@ -47,10 +47,7 @@
...
@@ -47,10 +47,7 @@
:sort=
"index"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isLast=
"isLast"
:isLast=
"isLast"
:ExamStatus=
"ExamStatus"
v-if=
"item.QuestionTypeKey === 'single-number' && index === changeIndex"
v-if=
"
item.QuestionTypeKey === 'single-number' && index === changeIndex
"
/>
/>
<!-- 多选题 -->
<!-- 多选题 -->
<MultipleChoice
<MultipleChoice
...
@@ -71,6 +68,7 @@
...
@@ -71,6 +68,7 @@
:isLast=
"isLast"
:isLast=
"isLast"
:sort=
"index"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isOperate=
"isOperate"
@
getBeforeTopic=
"getBeforeTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
getAfterTopic=
"getAfterTopic()"
@
getAfterTopic=
"getAfterTopic()"
@
answerChange=
"getAnswerChange($event, index)"
@
answerChange=
"getAnswerChange($event, index)"
...
@@ -364,8 +362,8 @@ export default {
...
@@ -364,8 +362,8 @@ 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
,
//大题序号
...
@@ -373,7 +371,7 @@ export default {
...
@@ -373,7 +371,7 @@ export default {
isShowAnswer
:
false
,
//是否显示答题卡
isShowAnswer
:
false
,
//是否显示答题卡
Exam_Student_Id
:
0
,
Exam_Student_Id
:
0
,
autoTimeStart
:
false
,
autoTimeStart
:
false
,
ExamStatus
:
-
1
,
//考试状态 判断是考试还是查看答案
isOperate
:
true
,
//考试状态 判断是考试还是查看答案
});
});
let
methods
=
{
let
methods
=
{
changeNumToHan
,
changeNumToHan
,
...
@@ -446,20 +444,21 @@ export default {
...
@@ -446,20 +444,21 @@ 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
){
if
(
options
.
ExamStatus
&&
options
.
ExamStatus
==
1
){
this
.
ExamStatus
=
options
.
ExamStatus
;
this
.
isOperate
=
false
;
this
.
msg
.
isShowAnswer
=
true
;
}
}
this
.
getPaperDetail
();
this
.
getPaperDetail
();
},
},
...
...
src/pages/index/index.vue
View file @
97a4fe5b
...
@@ -119,7 +119,7 @@
...
@@ -119,7 +119,7 @@
:style=
"
{ 'background-image': `url(${item.PicList[0]})` }"
:style=
"
{ 'background-image': `url(${item.PicList[0]})` }"
@click="
@click="
jumpPage(
jumpPage(
`/pages/exam/examPaper?GuestId=${i
ndexData
.GuestId}
&&
PaperId=${item.PaperId}
&&
Id=${item.Id}
&&
Exam_Student_Id=${item.Exam_Student_Id}
&&
ExamStatus=${item.ExamStatus}`
`/pages/exam/examPaper?GuestId=${i
tem
.GuestId}
&&
PaperId=${item.PaperId}
&&
Id=${item.Id}
&&
Exam_Student_Id=${item.Exam_Student_Id}
&&
ExamStatus=${item.ExamStatus}`
)
)
"
"
>
>
...
...
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