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
afb34daa
Commit
afb34daa
authored
Sep 14, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
18df880a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
examPaper.vue
src/pages/exam/examPaper.vue
+7
-2
examPaperList.vue
src/pages/exam/examPaperList.vue
+3
-3
No files found.
src/pages/exam/examPaper.vue
View file @
afb34daa
...
@@ -390,6 +390,7 @@ export default {
...
@@ -390,6 +390,7 @@ export default {
Exam_Student_Id
:
0
,
Exam_Student_Id
:
0
,
autoTimeStart
:
false
,
autoTimeStart
:
false
,
isOperate
:
true
,
//考试状态 判断是考试还是查看答案
isOperate
:
true
,
//考试状态 判断是考试还是查看答案
isAutoTime
:
true
});
});
let
methods
=
{
let
methods
=
{
changeNumToHan
,
changeNumToHan
,
...
@@ -409,8 +410,11 @@ export default {
...
@@ -409,8 +410,11 @@ export default {
if
(
res
)
{
if
(
res
)
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
data
.
peaperDetail
=
res
.
Data
;
data
.
peaperDetail
=
res
.
Data
;
data
.
autoTimeStart
=
true
;
//判断是查看答题结果就不倒计时
data
.
time
=
res
.
Data
.
Publish
.
ExamTimes
*
60
*
1000
;
if
(
this
.
isAutoTime
){
data
.
autoTimeStart
=
true
;
data
.
time
=
res
.
Data
.
Publish
.
ExamTimes
*
60
*
1000
;
}
}
}
}
}
},
},
...
@@ -475,6 +479,7 @@ export default {
...
@@ -475,6 +479,7 @@ export default {
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
.
isAutoTime
=
false
;
}
}
this
.
getPaperDetail
();
this
.
getPaperDetail
();
},
},
...
...
src/pages/exam/examPaperList.vue
View file @
afb34daa
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
:key=
"index"
:key=
"index"
class=
"exam-item"
class=
"exam-item"
:style=
"
{ 'background-image': `url(${item.PicList[0]})` }"
:style=
"
{ 'background-image': `url(${item.PicList[0]})` }"
@click="jumpPage(item.PaperId, item.Id, item.Exam_Student_Id)"
@click="jumpPage(item.PaperId, item.Id, item.Exam_Student_Id
,item.ExamStatus
)"
>
>
<view
class=
"testName"
>
<view
class=
"testName"
>
{{
item
.
PaperName
}}
{{
item
.
PaperName
}}
...
@@ -102,7 +102,7 @@ export default {
...
@@ -102,7 +102,7 @@ export default {
data
.
msg
.
pageIndex
=
1
;
data
.
msg
.
pageIndex
=
1
;
methods
.
getList
();
methods
.
getList
();
},
},
jumpPage
(
PaperId
,
Id
,
SId
)
{
jumpPage
(
PaperId
,
Id
,
SId
,
ExamStatus
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
url
:
"/pages/exam/examPaper?PaperId="
+
"/pages/exam/examPaper?PaperId="
+
...
@@ -110,7 +110,7 @@ export default {
...
@@ -110,7 +110,7 @@ export default {
"&&Id="
+
"&&Id="
+
Id
+
Id
+
"&&Exam_Student_Id="
+
"&&Exam_Student_Id="
+
SId
,
SId
+
"&&ExamStatus="
+
ExamStatus
});
});
},
},
lower
(
e
)
{
lower
(
e
)
{
...
...
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