Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xy_video
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
xy_video
Commits
b99b4f93
Commit
b99b4f93
authored
Aug 20, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 表单配置
parent
7b5c88a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
form.component.html
form/src/app/form/form.component.html
+5
-10
form.component.ts
form/src/app/form/form.component.ts
+8
-0
No files found.
form/src/app/form/form.component.html
View file @
b99b4f93
...
...
@@ -126,16 +126,6 @@
(
click
)="
addPage
()"
>
+增加提示内容
</button>
</div>
</div>
<!-- <span style="font-size: 20px;">提示音频: </span>
<div style="display:flex ;">
<div>
<app-audio-recorder [audioUrl]="item.audio" (audioUploaded)="onAudioUploadSuccess($event, 'audio')">
</app-audio-recorder>
</div>
<div style="margin: 5px">
<span>{{ item.audioName}}</span>
</div>
</div> -->
</div>
...
...
@@ -162,6 +152,11 @@
</div>
<input
type=
"text"
nz-input
[(
ngModel
)]="
item
.
jumpIdx
"
(
blur
)="
save
()"
>
</div>
<div
style=
"padding: 20px"
>
<app-upload-video
[
videoUrl
]="
item
.
video_url
"
(
videoUploaded
)="
onVideoUploaded
($
event
)"
></app-upload-video>
</div>
</div>
<nz-modal
[(
nzVisible
)]="
isVisible
"
[
nzTitle
]="
null
"
[
nzContent
]="
modalContent
"
[
nzFooter
]="
modalFooter
"
...
...
form/src/app/form/form.component.ts
View file @
b99b4f93
...
...
@@ -133,6 +133,8 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
contentMain
:
""
,
contentArr
:
[],
video_url
:
""
,
};
constructor
(
public
nzMessageService
:
NzMessageService
,
public
appRef
:
ApplicationRef
,
public
changeDetectorRef
:
ChangeDetectorRef
)
{
...
...
@@ -228,6 +230,12 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
this
.
save
();
}
onVideoUploaded
(
evt
)
{
this
.
item
.
video_url
=
evt
.
url
;
console
.
log
(
evt
);
this
.
save
();
}
changeMain
()
{
//输出的数据可以识别到\n的换行符
let
arr
=
this
.
item
.
contentMain
.
split
(
"
"
);
...
...
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