Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
ww_audio_image
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
ww_audio_image
Commits
b666901b
Commit
b666901b
authored
Oct 15, 2020
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 调试模板
parent
3c1ab92f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
upload-image-with-preview.component.ts
...image-with-preview/upload-image-with-preview.component.ts
+6
-3
No files found.
src/app/common/upload-image-with-preview/upload-image-with-preview.component.ts
View file @
b666901b
...
...
@@ -61,6 +61,7 @@ export class UploadImageWithPreviewComponent implements OnDestroy, OnChanges {
case
'
start
'
:
// this.isUploading = true;
// this.progress = 0;
console
.
log
(
"
uploading-start-begin
"
);
this
.
picUrl
=
null
;
// this.beforeUpload(item.file as any);
...
...
@@ -69,20 +70,22 @@ export class UploadImageWithPreviewComponent implements OnDestroy, OnChanges {
}
this
.
uploading
=
true
;
this
.
progress
=
0
;
console
.
log
(
"
uploading-start-end
"
);
break
;
case
'
success
'
:
// this.isUploading = false;
// this.uploadSuccess(info.file.response);
// this.audioUploaded.emit(info.file.response);
console
.
log
(
"
uploading-success-begin
"
);
this
.
uploadSuccess
(
info
.
file
);
console
.
log
(
"
uploading-success-end
"
);
break
;
case
'
progress
'
:
console
.
log
(
"
uploading-progress-begin
"
);
this
.
progress
=
parseInt
(
info
.
event
.
percent
,
10
);
this
.
doProgress
(
this
.
progress
);
console
.
log
(
"
uploading-progress-end
"
);
break
;
}
}
...
...
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