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
ff0c099a
Commit
ff0c099a
authored
Mar 26, 2026
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
db74ec8a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
13 deletions
+66
-13
index.html
form/index.html
+18
-5
index.js
form/index.js
+48
-8
No files found.
form/index.html
View file @
ff0c099a
...
@@ -216,7 +216,8 @@
...
@@ -216,7 +216,8 @@
<el-button
size=
"mini"
type=
"primary"
@
click=
"addQuestion('blank')"
>
新增填空题
</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('query')"
>
新增问答题
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"addQuestion('reading')"
>
新增跟读题
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"addQuestion('reading')"
>
新增跟读题
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"addQuestion('show')"
>
AI朗读题
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"addQuestion('reading_question')"
>
新增AI读题
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"addQuestion('reading_answer')"
>
新增AI读答案
</el-button>
</div>
</div>
<div
class=
"quiz-list"
v-if=
"quizList.length"
>
<div
class=
"quiz-list"
v-if=
"quizList.length"
>
<div
<div
...
@@ -238,7 +239,7 @@
...
@@ -238,7 +239,7 @@
</div>
</div>
<div
class=
"quiz-item-body"
>
<div
class=
"quiz-item-body"
>
<div
class=
"quiz-row"
v-if=
"q.type !== 'reading' && q.type !== '
show
'"
>
<div
class=
"quiz-row"
v-if=
"q.type !== 'reading' && q.type !== '
reading_question' && q.type !== 'reading_answer
'"
>
<div
class=
"quiz-label"
>
题干
</div>
<div
class=
"quiz-label"
>
题干
</div>
<el-input
<el-input
size=
"mini"
size=
"mini"
...
@@ -267,11 +268,23 @@
...
@@ -267,11 +268,23 @@
</el-radio-group>
</el-radio-group>
</div>
</div>
<div
class=
"quiz-row"
v-if=
"q.type === 'reading_question' || q.type === 'reading_answer'"
>
<div
class=
"quiz-label"
>
题干
</div>
<el-input
size=
"mini"
:ref=
"'quizReadingInput_' + qIndex"
v-model=
"q.text"
@
input=
"saveData"
></el-input>
</div>
<div
class=
"quiz-row"
v-if=
"q.type === 'query'"
>
<div
class=
"quiz-row"
v-if=
"q.type === 'query'"
>
<div
class=
"quiz-label"
>
参考答案
</div>
<div
class=
"quiz-label"
>
参考答案
</div>
<el-input
size=
"mini"
v-model=
"q.answer"
@
input=
"saveData"
></el-input>
<el-input
size=
"mini"
v-model=
"q.answer"
@
input=
"saveData"
></el-input>
</div>
</div>
<div
class=
"quiz-row"
v-if=
"q.type === 'query'"
>
<div
class=
"quiz-row"
v-if=
"q.type === 'reading_question' || q.type === 'reading_answer'"
>
<div
class=
"quiz-label"
>
参考答案
</div>
<el-input
size=
"mini"
v-model=
"q.answer"
@
input=
"saveData"
></el-input>
</div>
<div
class=
"quiz-row"
v-if=
"q.type === 'query' || q.type === 'reading_question' || q.type === 'reading_answer'"
>
<div
class=
"quiz-label"
>
备注
</div>
<div
class=
"quiz-label"
>
备注
</div>
<div
class=
"quiz-inline"
>
<div
class=
"quiz-inline"
>
<el-input
<el-input
...
@@ -282,7 +295,7 @@
...
@@ -282,7 +295,7 @@
<el-button
size=
"mini"
type=
"primary"
plain
@
click=
"fillQueryHint(q)"
>
一键填入图片理解内容
</el-button>
<el-button
size=
"mini"
type=
"primary"
plain
@
click=
"fillQueryHint(q)"
>
一键填入图片理解内容
</el-button>
</div>
</div>
</div>
</div>
<div
class=
"quiz-row"
v-if=
"q.type === 'query'"
>
<div
class=
"quiz-row"
v-if=
"q.type === 'query'
|| q.type === 'reading_question' || q.type === 'reading_answer'
"
>
<div
class=
"quiz-label"
>
提示
</div>
<div
class=
"quiz-label"
>
提示
</div>
<el-input
<el-input
type=
"textarea"
type=
"textarea"
...
@@ -302,7 +315,7 @@
...
@@ -302,7 +315,7 @@
</div>
</div>
</div>
</div>
<div
class=
"quiz-row"
v-if=
"q.type === 'reading'
|| q.type === 'show'
"
>
<div
class=
"quiz-row"
v-if=
"q.type === 'reading'"
>
<div
class=
"quiz-label"
>
题干
</div>
<div
class=
"quiz-label"
>
题干
</div>
<el-input
<el-input
size=
"mini"
size=
"mini"
...
...
form/index.js
View file @
ff0c099a
...
@@ -161,10 +161,32 @@ new Vue({
...
@@ -161,10 +161,32 @@ new Vue({
});
});
return
;
return
;
}
}
if
(
item
.
type
===
'
reading
'
||
item
.
type
===
'
show
'
)
{
if
(
item
.
type
===
'
reading
_question
'
||
item
.
type
===
'
reading_answer
'
)
{
_this
.
quizList
.
push
({
_this
.
quizList
.
push
({
id
:
'
q_
'
+
Date
.
now
()
+
'
_
'
+
Math
.
random
().
toString
(
16
).
slice
(
2
),
id
:
'
q_
'
+
Date
.
now
()
+
'
_
'
+
Math
.
random
().
toString
(
16
).
slice
(
2
),
type
:
item
.
type
,
type
:
item
.
type
,
text
:
item
.
text
||
''
,
answer
:
item
.
answer
||
''
,
hint
:
item
.
hint
||
''
,
tip
:
item
.
tip
||
''
});
return
;
}
if
(
item
.
type
===
'
show
'
)
{
_this
.
quizList
.
push
({
id
:
'
q_
'
+
Date
.
now
()
+
'
_
'
+
Math
.
random
().
toString
(
16
).
slice
(
2
),
type
:
'
reading_question
'
,
text
:
item
.
text
||
''
,
answer
:
item
.
answer
||
''
,
hint
:
item
.
hint
||
''
,
tip
:
item
.
tip
||
''
});
return
;
}
if
(
item
.
type
===
'
reading
'
)
{
_this
.
quizList
.
push
({
id
:
'
q_
'
+
Date
.
now
()
+
'
_
'
+
Math
.
random
().
toString
(
16
).
slice
(
2
),
type
:
'
reading
'
,
text
:
item
.
text
||
''
text
:
item
.
text
||
''
});
});
}
}
...
@@ -246,8 +268,13 @@ new Vue({
...
@@ -246,8 +268,13 @@ new Vue({
item
.
correct
=
true
;
item
.
correct
=
true
;
}
else
if
(
type
===
'
blank
'
)
{
}
else
if
(
type
===
'
blank
'
)
{
item
.
answers
=
[
''
];
item
.
answers
=
[
''
];
}
else
if
(
type
===
'
reading
'
||
type
===
'
show
'
)
{
}
else
if
(
type
===
'
reading
'
)
{
item
.
text
=
''
;
}
else
if
(
type
===
'
reading_question
'
||
type
===
'
reading_answer
'
)
{
item
.
text
=
''
;
item
.
text
=
''
;
item
.
answer
=
''
;
item
.
hint
=
''
;
item
.
tip
=
''
;
}
}
this
.
quizList
.
push
(
item
);
this
.
quizList
.
push
(
item
);
this
.
saveData
();
this
.
saveData
();
...
@@ -269,7 +296,7 @@ new Vue({
...
@@ -269,7 +296,7 @@ new Vue({
}.
bind
(
this
)).
catch
(
function
()
{});
}.
bind
(
this
)).
catch
(
function
()
{});
},
},
focusNewQuestionInput
:
function
(
index
,
type
)
{
focusNewQuestionInput
:
function
(
index
,
type
)
{
var
refName
=
type
===
'
reading
'
||
type
===
'
show
'
?
'
quizReadingInput_
'
+
index
:
'
quizQuestionInput_
'
+
index
;
var
refName
=
type
===
'
reading
'
||
type
===
'
reading_question
'
||
type
===
'
reading_answer
'
?
'
quizReadingInput_
'
+
index
:
'
quizQuestionInput_
'
+
index
;
var
ref
=
this
.
$refs
[
refName
];
var
ref
=
this
.
$refs
[
refName
];
var
inputRef
=
Array
.
isArray
(
ref
)
?
ref
[
0
]
:
ref
;
var
inputRef
=
Array
.
isArray
(
ref
)
?
ref
[
0
]
:
ref
;
if
(
inputRef
&&
inputRef
.
$el
)
{
if
(
inputRef
&&
inputRef
.
$el
)
{
...
@@ -295,8 +322,11 @@ new Vue({
...
@@ -295,8 +322,11 @@ new Vue({
if
(
type
===
'
reading
'
)
{
if
(
type
===
'
reading
'
)
{
return
'
跟读题
'
;
return
'
跟读题
'
;
}
}
if
(
type
===
'
show
'
)
{
if
(
type
===
'
reading_question
'
)
{
return
'
展示题
'
;
return
'
AI读题
'
;
}
if
(
type
===
'
reading_answer
'
)
{
return
'
AI读答案
'
;
}
}
return
'
未知
'
;
return
'
未知
'
;
},
},
...
@@ -336,7 +366,7 @@ new Vue({
...
@@ -336,7 +366,7 @@ new Vue({
this
.
saveData
();
this
.
saveData
();
},
},
fillQueryHint
:
function
(
item
)
{
fillQueryHint
:
function
(
item
)
{
if
(
!
item
||
item
.
type
!==
'
query
'
)
{
if
(
!
item
||
(
item
.
type
!==
'
query
'
&&
item
.
type
!==
'
reading_question
'
&&
item
.
type
!==
'
reading_answer
'
)
)
{
return
;
return
;
}
}
if
(
!
this
.
aiImageContent
)
{
if
(
!
this
.
aiImageContent
)
{
...
@@ -774,11 +804,21 @@ Atmosphere and Colors: [Fill in content]
...
@@ -774,11 +804,21 @@ Atmosphere and Colors: [Fill in content]
});
});
return
;
return
;
}
}
if
(
item
.
type
===
'
reading
'
||
item
.
type
===
'
show
'
)
{
if
(
item
.
type
===
'
reading
'
)
{
action
.
push
({
action
.
push
({
type
:
item
.
type
,
type
:
'
reading
'
,
text
:
item
.
text
||
''
text
:
item
.
text
||
''
});
});
return
;
}
if
(
item
.
type
===
'
reading_question
'
||
item
.
type
===
'
reading_answer
'
)
{
action
.
push
({
type
:
item
.
type
,
text
:
item
.
text
||
''
,
answer
:
item
.
answer
||
''
,
hint
:
item
.
hint
||
''
,
tip
:
item
.
tip
||
''
});
}
}
});
});
}
}
...
...
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