Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
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
李苏
sgaqgl-vue
Commits
8f55b9c9
Commit
8f55b9c9
authored
Dec 17, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中断考试
parent
043e9bdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
index.vue
src/views/train/testPaper/index.vue
+12
-6
No files found.
src/views/train/testPaper/index.vue
View file @
8f55b9c9
...
...
@@ -90,9 +90,9 @@
return
}
/* 显示考试人员信息*/
const
{
username
,
userid
}
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'allUserInfo'
))
this
.
username
=
username
this
.
userid
=
userid
//
const
{
username
,
userid
}
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'allUserInfo'
))
this
.
username
=
localStorage
.
getItem
(
'username'
)
this
.
userid
=
localStorage
.
getItem
(
'userid'
)
this
.
title
=
this
.
singleItem
.
name
||
'未知试卷'
/* 判断进入类型*/
...
...
@@ -168,7 +168,7 @@
this
.
startTime
=
this
.
singleItem
.
kssj
this
.
endTime
=
this
.
singleItem
.
jssj
this
.
kssc
=
this
.
singleItem
.
kssc
*
60
*
1000
/* 配置考试类型*/
this
.
paperType
=
'K'
this
.
paperState
=
'B'
...
...
@@ -181,7 +181,7 @@
}
,
mounted
()
{
if
(
this
.
paperState
==
'B'
){
this
.
getRemain
()
}
/* 获取*/
...
...
@@ -224,7 +224,11 @@
}
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
subjectList
=
[]
let
oList
=
res
.
data
.
records
||
[]
let
lastTime
=
res
.
data
.
records
.
ksjl
.
kskssj
let
useTime
=
new
Date
().
getTime
()
-
lastTime
this
.
kssc
=
this
.
singleItem
.
kssc
*
60
*
1000
-
useTime
this
.
getRemain
()
let
oList
=
res
.
data
.
records
.
datas
||
[]
/* 构建subjectList*/
console
.
log
(
this
.
singleItem
,
'singleItem'
)
this
.
subjectList
=
oList
.
map
(
item
=>
{
...
...
@@ -254,6 +258,8 @@
}
}
).
catch
(
e
=>
{
this
.
gobac
()
}
)
}
,
fullScreen
(
element
)
{
...
...
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