Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
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
d057e3d3
You need to sign in or sign up before continuing.
Commit
d057e3d3
authored
Jan 06, 2023
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化新增题目问题
parent
a35d5344
Show 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 @
d057e3d3
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
<
!--
<
el-form-item
class=
"noAttr"
class=
"noAttr"
:label=
"`选项$
{form.questions.length + 1}`"
:label=
"`选项$
{form.questions.length + 1}`"
prop=""
prop=""
...
@@ -99,17 +99,16 @@
...
@@ -99,17 +99,16 @@
:class=
"
{ active: answerNum === form.questions.length }"
:class=
"
{ active: answerNum === form.questions.length }"
>
>
设为正确答案
设为正确答案
</div>
</div>
-->
<div
style=
"padding-left:30px"
>
<el-button
<el-button
size=
"mini"
type=
"primary"
@
click
.
prevent=
"add(addValue)"
size=
"mini"
>
新增选项
</el-button
type=
"primary"
@
click
.
prevent=
"add(addValue)"
>
新增
</el-button
>
>
</div>
</div>
<!--
</div>
</div>
</div>
</el-form-item>
</el-form-item>
-->
</div>
</div>
</el-form>
</el-form>
</div>
</div>
...
@@ -143,7 +142,7 @@ export default {
...
@@ -143,7 +142,7 @@ export default {
return
{
return
{
form
:
{
form
:
{
topicTitle
:
""
,
topicTitle
:
""
,
questions
:
[{
value
:
""
},
{
value
:
""
}
,
{
value
:
""
}
],
questions
:
[{
value
:
""
},
{
value
:
""
}],
},
},
answerNum
:
null
,
answerNum
:
null
,
addValue
:
""
,
addValue
:
""
,
...
@@ -176,11 +175,11 @@ export default {
...
@@ -176,11 +175,11 @@ export default {
getQuestion
()
{
getQuestion
()
{
getQuestion
({
courseId
:
this
.
courseId
}).
then
((
res
)
=>
{
getQuestion
({
courseId
:
this
.
courseId
}).
then
((
res
)
=>
{
// 如果是修改 就是原来的值,如果不是,就是总数+1
// 如果是修改 就是原来的值,如果不是,就是总数+1
console
.
log
(
res
)
console
.
log
(
res
)
;
if
(
this
.
topicId
)
{
if
(
this
.
topicId
)
{
res
.
rows
.
forEach
((
item
,
index
)
=>
{
res
.
rows
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
topicId
==
this
.
topicId
)
{
if
(
item
.
topicId
==
this
.
topicId
)
{
this
.
questionNextNum
=
index
+
1
;
this
.
questionNextNum
=
index
+
1
;
}
}
});
});
}
else
{
}
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