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
af7d320b
Commit
af7d320b
authored
Sep 13, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
985f4c6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
examPaper.vue
src/pages/exam/examPaper.vue
+10
-2
index.vue
src/pages/index/index.vue
+1
-1
No files found.
src/pages/exam/examPaper.vue
View file @
af7d320b
...
...
@@ -42,6 +42,7 @@
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isLast=
"isLast"
:ExamStatus=
"ExamStatus"
v-if=
"
item.QuestionTypeKey === 'single-number' && index === changeIndex
"
...
...
@@ -354,19 +355,20 @@ export default {
Answer
,
},
setup
(
props
,
context
)
{
let
Gid
=
uni
.
getStorageSync
(
"userInfo"
).
Id
;
//
let Gid = uni.getStorageSync("userInfo").Id;
let
{
refs
}
=
getCurrentInstance
();
let
data
=
reactive
({
time
:
999
,
statusBarHeight
:
0
,
// msg: { GuestId: 64, PaperId: 34, PublishId: 9 },
msg
:
{
GuestId
:
Gid
,
PaperId
:
0
,
PublishId
:
0
},
msg
:
{
GuestId
:
0
,
PaperId
:
0
,
PublishId
:
0
,
isShowAnswer
:
true
},
peaperDetail
:
{},
changeIndex
:
0
,
//大题序号
isLast
:
false
,
//用于判断是否从后往前翻
isShowAnswer
:
false
,
//是否显示答题卡
Exam_Student_Id
:
0
,
autoTimeStart
:
false
,
ExamStatus
:
-
1
,
//考试状态 判断是考试还是查看答案
});
let
methods
=
{
changeNumToHan
,
...
...
@@ -439,6 +441,9 @@ export default {
},
onLoad
(
options
)
{
console
.
log
(
options
,
"options"
);
if
(
options
.
GuestId
){
this
.
msg
.
GuestId
=
options
.
GuestId
;
}
if
(
options
.
PaperId
)
{
this
.
msg
.
PaperId
=
options
.
PaperId
;
}
...
...
@@ -448,6 +453,9 @@ export default {
if
(
options
.
Exam_Student_Id
)
{
this
.
Exam_Student_Id
=
options
.
Exam_Student_Id
;
}
if
(
options
.
ExamStatus
){
this
.
ExamStatus
=
options
.
ExamStatus
;
}
this
.
getPaperDetail
();
},
};
...
...
src/pages/index/index.vue
View file @
af7d320b
...
...
@@ -108,7 +108,7 @@
:style=
"
{ 'background-image': `url(${item.PicList[0]})` }"
@click="
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
}`
)
"
>
...
...
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