Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JJ19
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
JJ19
Commits
ad5aae0f
Commit
ad5aae0f
authored
Jul 10, 2025
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 分数模式
parent
9ae26a53
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
.DS_Store
.DS_Store
+0
-0
form.component.html
form/src/app/form/form.component.html
+5
-0
form.component.ts
form/src/app/form/form.component.ts
+4
-0
No files found.
.DS_Store
View file @
ad5aae0f
No preview for this file type
form/src/app/form/form.component.html
View file @
ad5aae0f
...
...
@@ -5,6 +5,11 @@
<input
type=
"text"
nz-input
[(
ngModel
)]="
item
.
title
"
(
blur
)="
save
()"
style=
" width: 350px;"
>
</div>
<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
*
ngIf=
"item && item.quesArr"
>
<div
*
ngFor=
"let ques of item.quesArr; let i = index"
...
...
form/src/app/form/form.component.ts
View file @
ad5aae0f
...
...
@@ -528,6 +528,10 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this
.
item
.
quesArr
=
[];
}
// 初始化是否展示分数,默认为false
if
(
this
.
item
.
isShowScore
===
undefined
)
{
this
.
item
.
isShowScore
=
false
;
}
}
...
...
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