Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
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
和慭琛
take_order
Commits
51c585b1
Commit
51c585b1
authored
Mar 03, 2021
by
和慭琛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-photo-tools'
# Conflicts: # take-order/pages.json
parents
839ce0cd
6c372418
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
index.vue
take-order/pages/exam/index.vue
+16
-1
No files found.
take-order/pages/exam/index.vue
View file @
51c585b1
...
@@ -337,8 +337,9 @@
...
@@ -337,8 +337,9 @@
handleData
:
function
()
{
handleData
:
function
()
{
this
.
currentItem
.
answerList
.
forEach
(
item
=>
{
this
.
currentItem
.
answerList
.
forEach
(
(
item
,
index
)
=>
{
item
.
isSelect
=
false
item
.
isSelect
=
false
this
.
$set
(
this
.
currentItem
.
answerList
,
index
,
item
)
})
})
},
},
...
@@ -364,6 +365,11 @@
...
@@ -364,6 +365,11 @@
itemClick
:
function
(
currentItem
,
ikey
)
{
itemClick
:
function
(
currentItem
,
ikey
)
{
this
.
isSelect
=
true
this
.
isSelect
=
true
console
.
log
(
'选点点击--处理前--this.currentItem.answerList:'
)
console
.
log
(
this
.
currentItem
.
answerList
)
console
.
log
(
'选点点击--处理前--ikey:'
)
console
.
log
(
ikey
)
//answerType 题目类型,1单选,2多选,3简答,
//answerType 题目类型,1单选,2多选,3简答,
...
@@ -373,14 +379,19 @@
...
@@ -373,14 +379,19 @@
if
(
this
.
currentItem
.
answerType
==
2
)
{
//多选
if
(
this
.
currentItem
.
answerType
==
2
)
{
//多选
if
(
ikey
==
i
)
{
if
(
ikey
==
i
)
{
item
.
isSelect
=
!
item
.
isSelect
item
.
isSelect
=
!
item
.
isSelect
}
}
}
else
{
//单选/简答
}
else
{
//单选/简答
if
(
ikey
==
i
)
{
if
(
ikey
==
i
)
{
item
.
isSelect
=
!
item
.
isSelect
item
.
isSelect
=
!
item
.
isSelect
}
else
{
}
else
{
item
.
isSelect
=
false
item
.
isSelect
=
false
}
}
}
}
this
.
$set
(
this
.
currentItem
.
answerList
[
i
],
isSelect
,
item
.
isSelect
)
}
}
...
@@ -393,6 +404,10 @@
...
@@ -393,6 +404,10 @@
//有选答案
//有选答案
this
.
isSelect
=
isSelect
this
.
isSelect
=
isSelect
console
.
log
(
'选点点击--处理后--this.currentItem.answerList:'
)
console
.
log
(
this
.
currentItem
.
answerList
)
},
},
...
...
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