Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM_L5_26
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
YM_L5_26
Commits
96599ac9
Commit
96599ac9
authored
Jun 15, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 补充标题
parent
8f05e337
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
form.component.html
src/app/form/form.component.html
+3
-0
form.component.ts
src/app/form/form.component.ts
+6
-2
No files found.
src/app/form/form.component.html
View file @
96599ac9
...
...
@@ -36,6 +36,9 @@
<div
class=
"border"
style=
"width: 750px;"
>
<span
style=
"float: left; height: 30px; font-size: 18px;"
>
{{sideByIndex[i]}}:
</span>
<br><br>
<span
style=
"float: left; margin-left: 20px; margin-bottom: -15px; height: 30px; font-size: 18px;"
>
标题:
</span>
<input
style=
"float: left; margin-bottom: -15px; width: 250px;"
type=
"text"
nz-input
[(
ngModel
)]="
item
.
groupTitle
[
i
]"
(
blur
)="
save
()"
>
<div
*
ngFor=
"let line of group; let j = index"
>
<div
style=
"width: 660px; float: left;"
class=
"border"
>
<div
style=
"float: left;"
>
...
...
src/app/form/form.component.ts
View file @
96599ac9
...
...
@@ -37,7 +37,6 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
}
ngOnInit
()
{
this
.
item
=
{
title
:
''
,
titleAudio
:
''
,
...
...
@@ -46,7 +45,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
middleImg
:
''
,
middleImgAudio
:
''
,
totalAudio
:
''
,
group
:
[[],
[],
[],
[]]
group
:
[[],
[],
[],
[]],
groupTitle
:
[
''
,
''
,
''
,
''
],
};
// 获取存储的数据
...
...
@@ -56,6 +56,10 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this
.
item
=
data
;
}
if
(
!
this
.
item
.
groupTitle
)
{
this
.
item
.
groupTitle
=
[
''
,
''
,
''
,
''
];
}
this
.
init
();
this
.
changeDetectorRef
.
markForCheck
();
this
.
changeDetectorRef
.
detectChanges
();
...
...
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