Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yl16_ai_cartoon
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
yl16_ai_cartoon
Commits
751be055
Commit
751be055
authored
Mar 25, 2026
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
8a0fcb3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
index.html
form/index.html
+4
-3
index.js
form/index.js
+9
-6
No files found.
form/index.html
View file @
751be055
...
...
@@ -212,10 +212,11 @@
@
close=
"closeQuizDialog"
>
<div
class=
"quiz-toolbar"
>
<el-button
size=
"mini"
type=
"primary"
@
click=
"addQuestion('choice')"
>
新增选择题
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"addQuestion('query')"
>
新增问答题
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"addQuestion('judge')"
>
新增判断题
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"addQuestion('blank')"
>
新增填空题
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"addQuestion('query')"
>
新增问答题
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"addQuestion('reading')"
>
新增跟读题
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"addQuestion('show')"
>
新增展示题
</el-button>
</div>
<div
class=
"quiz-list"
v-if=
"quizList.length"
>
<div
...
...
@@ -237,7 +238,7 @@
</div>
<div
class=
"quiz-item-body"
>
<div
class=
"quiz-row"
v-if=
"q.type !== 'reading'"
>
<div
class=
"quiz-row"
v-if=
"q.type !== 'reading'
&& q.type !== 'show'
"
>
<div
class=
"quiz-label"
>
题干
</div>
<el-input
size=
"mini"
...
...
@@ -301,7 +302,7 @@
</div>
</div>
<div
class=
"quiz-row"
v-if=
"q.type === 'reading'"
>
<div
class=
"quiz-row"
v-if=
"q.type === 'reading'
|| q.type === 'show'
"
>
<div
class=
"quiz-label"
>
题干
</div>
<el-input
size=
"mini"
...
...
form/index.js
View file @
751be055
...
...
@@ -161,10 +161,10 @@ new Vue({
});
return
;
}
if
(
item
.
type
===
'
reading
'
)
{
if
(
item
.
type
===
'
reading
'
||
item
.
type
===
'
show
'
)
{
_this
.
quizList
.
push
({
id
:
'
q_
'
+
Date
.
now
()
+
'
_
'
+
Math
.
random
().
toString
(
16
).
slice
(
2
),
type
:
'
reading
'
,
type
:
item
.
type
,
text
:
item
.
text
||
''
});
}
...
...
@@ -246,7 +246,7 @@ new Vue({
item
.
correct
=
true
;
}
else
if
(
type
===
'
blank
'
)
{
item
.
answers
=
[
''
];
}
else
if
(
type
===
'
reading
'
)
{
}
else
if
(
type
===
'
reading
'
||
type
===
'
show
'
)
{
item
.
text
=
''
;
}
this
.
quizList
.
push
(
item
);
...
...
@@ -269,7 +269,7 @@ new Vue({
}.
bind
(
this
)).
catch
(
function
()
{});
},
focusNewQuestionInput
:
function
(
index
,
type
)
{
var
refName
=
type
===
'
reading
'
?
'
quizReadingInput_
'
+
index
:
'
quizQuestionInput_
'
+
index
;
var
refName
=
type
===
'
reading
'
||
type
===
'
show
'
?
'
quizReadingInput_
'
+
index
:
'
quizQuestionInput_
'
+
index
;
var
ref
=
this
.
$refs
[
refName
];
var
inputRef
=
Array
.
isArray
(
ref
)
?
ref
[
0
]
:
ref
;
if
(
inputRef
&&
inputRef
.
$el
)
{
...
...
@@ -295,6 +295,9 @@ new Vue({
if
(
type
===
'
reading
'
)
{
return
'
跟读题
'
;
}
if
(
type
===
'
show
'
)
{
return
'
展示题
'
;
}
return
'
未知
'
;
},
addChoiceOption
:
function
(
qIndex
)
{
...
...
@@ -771,9 +774,9 @@ Atmosphere and Colors: [Fill in content]
});
return
;
}
if
(
item
.
type
===
'
reading
'
)
{
if
(
item
.
type
===
'
reading
'
||
item
.
type
===
'
show
'
)
{
action
.
push
({
type
:
'
reading
'
,
type
:
item
.
type
,
text
:
item
.
text
||
''
});
}
...
...
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