Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
3b3e1976
Commit
3b3e1976
authored
Jan 06, 2023
by
zhangjianqian
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
018af861
d057e3d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
AddQuestion.vue
...ucationPlanExam/lessonsProgram/components/AddQuestion.vue
+12
-13
No files found.
danger-manage-web/src/views/educationPlanExam/lessonsProgram/components/AddQuestion.vue
View file @
3b3e1976
...
...
@@ -77,7 +77,7 @@
</div>
</el-form-item>
<el-form-item
<
!--
<
el-form-item
class=
"noAttr"
:label=
"`选项$
{form.questions.length + 1}`"
prop=""
...
...
@@ -99,17 +99,16 @@
:class=
"
{ active: answerNum === form.questions.length }"
>
设为正确答案
</div>
</div>
-->
<div
style=
"padding-left:30px"
>
<el-button
size=
"mini"
type=
"primary"
@
click
.
prevent=
"add(addValue)"
>
新增选项
</el-button
>
</div>
<el-button
size=
"mini"
type=
"primary"
@
click
.
prevent=
"add(addValue)"
>
新增
</el-button
>
</div>
<!--
</div>
</div>
</el-form-item>
</el-form-item>
-->
</div>
</el-form>
</div>
...
...
@@ -143,7 +142,7 @@ export default {
return
{
form
:
{
topicTitle
:
""
,
questions
:
[{
value
:
""
},
{
value
:
""
}
,
{
value
:
""
}
],
questions
:
[{
value
:
""
},
{
value
:
""
}],
},
answerNum
:
null
,
addValue
:
""
,
...
...
@@ -176,11 +175,11 @@ export default {
getQuestion
()
{
getQuestion
({
courseId
:
this
.
courseId
}).
then
((
res
)
=>
{
// 如果是修改 就是原来的值,如果不是,就是总数+1
console
.
log
(
res
)
console
.
log
(
res
)
;
if
(
this
.
topicId
)
{
res
.
rows
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
topicId
==
this
.
topicId
)
{
this
.
questionNextNum
=
index
+
1
;
this
.
questionNextNum
=
index
+
1
;
}
});
}
else
{
...
...
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