Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dfzx_ac2
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
dfzx_ac2
Commits
fc2ae412
Commit
fc2ae412
authored
Mar 29, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New delete audio button
parent
10d1ee3d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
+12
-6
audio-recorder.component.html
...c/app/common/audio-recorder/audio-recorder.component.html
+2
-1
audio-recorder.component.ts
...src/app/common/audio-recorder/audio-recorder.component.ts
+0
-3
form.component.html
form/src/app/form/form.component.html
+9
-2
styles.css
form/src/styles.css
+1
-0
No files found.
form/src/app/common/audio-recorder/audio-recorder.component.html
View file @
fc2ae412
...
@@ -33,8 +33,9 @@
...
@@ -33,8 +33,9 @@
<div
*
ngIf=
"audioUrl && needRemove; then truthyTemplate else falsyTemplate"
></div>
<div
*
ngIf=
"audioUrl && needRemove; then truthyTemplate else falsyTemplate"
></div>
<ng-template
#
truthyTemplate
>
<ng-template
#
truthyTemplate
>
<div
class=
"btn-delete"
(
click
)="
onBtnDeleteAudio
()"
>
<div
class=
"btn-delete"
(
click
)="
onBtnDeleteAudio
()"
>
<
i
nz-icon
nzType=
"delete"
nzTheme=
"outline"
></i
>
<
fa-icon
icon=
"close"
></fa-icon
>
</div>
</div>
</ng-template>
</ng-template>
...
...
form/src/app/common/audio-recorder/audio-recorder.component.ts
View file @
fc2ae412
...
@@ -145,14 +145,11 @@ export class AudioRecorderComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -145,14 +145,11 @@ export class AudioRecorderComponent implements OnInit, OnChanges, OnDestroy {
// 开始录音
// 开始录音
onBtnRecord
=
()
=>
{
onBtnRecord
=
()
=>
{
}
}
// 切换模式
// 切换模式
onBtnSwitchType
()
{
onBtnSwitchType
()
{
}
}
onBtnClearAudio
()
{
onBtnClearAudio
()
{
this
.
audioUrl
=
null
;
this
.
audioUrl
=
null
;
this
.
audioRemoved
.
emit
();
this
.
audioRemoved
.
emit
();
...
...
form/src/app/form/form.component.html
View file @
fc2ae412
...
@@ -18,8 +18,15 @@
...
@@ -18,8 +18,15 @@
<span>
音频
</span>
<span>
音频
</span>
</div>
</div>
<div
style=
"flex:11"
>
<div
style=
"flex:11"
>
<app-audio-recorder
[
audioUrl
]="
item
.
audio_url1
"
(
audioUploaded
)="
onAudioUploadSuccessByItem
($
event
,
item
,
'
audio_url1
')"
:needRemove=
"true"
(
audioRemoved
)="
onAudioDeleteByItem
($
event
,
item
,
'
audio_url1
')"
></app-audio-recorder>
<div
style=
"float: left;"
>
</div>
<app-audio-recorder
[
audioUrl
]="
item
.
audio_url1
"
(
audioUploaded
)="
onAudioUploadSuccessByItem
($
event
,
item
,
'
audio_url1
')"
></app-audio-recorder>
</div>
<div
style=
"float: left; margin-left: 20px;"
>
<button
nz-button
nzType=
"danger"
[
disabled
]="!
item
.
audio_url1
"
(
click
)="
onAudioDeleteByItem
($
event
,
item
,
'
audio_url1
')"
>
清除音频
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
form/src/styles.css
View file @
fc2ae412
/* You can add global styles to this file, and also import other style files */
/* You can add global styles to this file, and also import other style files */
@import
"~ng-zorro-antd/ng-zorro-antd.min.css"
;
\ 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