Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
56e6ab16
Commit
56e6ab16
authored
May 20, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A
parent
39d00edb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
apps/exams/Tpl/default/Index/examsroom_w3g.html
+11
-15
No files found.
apps/exams/Tpl/default/Index/examsroom_w3g.html
View file @
56e6ab16
...
...
@@ -401,7 +401,9 @@
current
:
1
,
paperOptions
:
{},
countDown
:
"00:00:00"
,
expand
:
false
expand
:
false
,
//选项
currentOptions
:
[]
}
},
computed
:
{
...
...
@@ -457,19 +459,6 @@
}
}
},
//选项
currentOptions
:
function
()
{
let
array
=
[]
for
(
let
k
in
this
.
currentQuestion
.
answer_options
)
{
let
value
=
this
.
currentQuestion
.
answer_options
[
k
]
array
.
push
({
key
:
k
,
value
:
value
,
selected
:
false
})
}
return
array
},
//选择题答案
currentRightOptions
:
function
()
{
return
this
.
currentQuestion
.
answer_true_option
...
...
@@ -498,6 +487,14 @@
this
.
info
=
{:
json_encode
(
$paper
)};
this
.
temp
=
{:
json_encode
(
$tempData
)};
this
.
paperOptions
=
{:
json_encode
(
$paper_options
)};
for
(
let
k
in
this
.
currentQuestion
.
answer_options
)
{
let
value
=
this
.
currentQuestion
.
answer_options
[
k
]
this
.
currentOptions
.
push
({
key
:
k
,
value
:
value
,
selected
:
false
})
}
console
.
log
(
this
.
info
)
console
.
log
(
this
.
temp
)
console
.
log
(
this
.
paperOptions
)
...
...
@@ -524,7 +521,6 @@
},
onChoose
:
function
(
opt
)
{
if
(
this
.
currentQuestionTypeKey
==
'radio'
)
{
console
.
log
(
this
.
currentOptions
)
this
.
currentOptions
.
forEach
(
r
=>
{
r
.
selected
=
opt
.
key
==
r
.
key
})
...
...
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