Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jj15_zww
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
jj15_zww
Commits
1ccd7e46
Commit
1ccd7e46
authored
Jul 18, 2025
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 表单增加分数模式
parent
6016b4c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
form.component.html
form/src/app/form/form.component.html
+7
-0
form.component.ts
form/src/app/form/form.component.ts
+12
-0
No files found.
form/src/app/form/form.component.html
View file @
1ccd7e46
...
...
@@ -76,6 +76,13 @@
<div
class=
"model-content"
>
<div
style=
"padding: 10px;background-color: #fff;"
>
<div
style=
"margin: 30px; display: flex; align-items: center; "
>
<h3>
分数反馈
</h3>
<label
style=
"margin-left: 10px; margin-bottom: 5px;"
nz-checkbox
[(
ngModel
)]="
item
.
isShowScore
"
(
ngModelChange
)="
checkboxChange
($
event
,
item
,
'
isShowScore
')"
></label>
</div>
<div
style=
"margin: 30px; display: flex; align-items: center;"
>
<h3>
标题音频:
</h3>
<div
style=
"margin-left: 10px;"
>
...
...
form/src/app/form/form.component.ts
View file @
1ccd7e46
...
...
@@ -15,6 +15,7 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
title
:
""
,
audio_url
:
''
,
questions
:
[],
isShowScore
:
false
,
};
isVisible
=
false
;
deleteTitle
=
"
是否删除题目
"
;
...
...
@@ -38,6 +39,8 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
if
(
this
.
item
.
questions
.
length
==
0
)
{
this
.
addquestion
();
}
}
removeoption
(
i
,
j
)
{
...
...
@@ -90,4 +93,13 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
ngChange
()
{
this
.
save
();
}
checkboxChange
(
e
,
it
,
key
)
{
console
.
log
(
'
e:
'
,
e
);
it
[
key
]
=
e
;
this
.
save
();
}
}
\ No newline at end of file
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