Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sn_config
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
sn_config
Commits
83198a13
Commit
83198a13
authored
Nov 04, 2023
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 表单添加项
parent
518e9c66
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
form.component.html
form/src/app/form/form.component.html
+18
-0
form.component.ts
form/src/app/form/form.component.ts
+4
-0
No files found.
form/src/app/form/form.component.html
View file @
83198a13
...
@@ -4,6 +4,24 @@
...
@@ -4,6 +4,24 @@
<div
class=
"border"
style=
"width: 1000px;"
>
<div
class=
"border"
style=
"width: 1000px;"
>
<span
style=
"font-size: 20px;"
>
标题:
</span>
<span
style=
"font-size: 20px;"
>
标题:
</span>
<input
type=
"text"
nz-input
[(
ngModel
)]="
item
.
title
"
(
blur
)="
save
()"
>
<input
type=
"text"
nz-input
[(
ngModel
)]="
item
.
title
"
(
blur
)="
save
()"
>
<div>
<span>
老师头像:
</span>
<div
style=
"width: 300px;"
>
<app-upload-image-with-preview
[
picUrl
]="
item
.
teacher_avatar
"
(
imageUploaded
)="
onAssetUploadSuccess
($
event
,
'
teacher_avatar
')"
>
</app-upload-image-with-preview>
</div>
</div>
<span
style=
"font-size: 20px;"
>
学习单词:
</span>
<textarea
rows=
"4"
nz-input
[(
ngModel
)]="
item
.
word
"
(
blur
)="
save
()"
></textarea>
<span
style=
"font-size: 20px;"
>
学习句子:
</span>
<textarea
rows=
"4"
nz-input
[(
ngModel
)]="
item
.
sentence
"
(
blur
)="
save
()"
></textarea>
<span
style=
"font-size: 20px;"
>
故事梗概:
</span>
<textarea
rows=
"4"
nz-input
[(
ngModel
)]="
item
.
story
"
(
blur
)="
save
()"
></textarea>
</div>
</div>
<div
class=
"border"
style=
"width: 1000px;"
>
<div
class=
"border"
style=
"width: 1000px;"
>
...
...
form/src/app/form/form.component.ts
View file @
83198a13
...
@@ -15,6 +15,10 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
...
@@ -15,6 +15,10 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
// 储存对象
// 储存对象
item
:
any
=
{
item
:
any
=
{
title
:
''
,
title
:
''
,
teacher_avatar
:
''
,
word
:
''
,
sentence
:
''
,
store
:
''
,
pages
:
[],
pages
:
[],
};
};
...
...
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