Commit b666901b authored by liujiangnan's avatar liujiangnan

fix: 调试模板

parent 3c1ab92f
...@@ -61,6 +61,7 @@ export class UploadImageWithPreviewComponent implements OnDestroy, OnChanges { ...@@ -61,6 +61,7 @@ export class UploadImageWithPreviewComponent implements OnDestroy, OnChanges {
case 'start': case 'start':
// this.isUploading = true; // this.isUploading = true;
// this.progress = 0; // this.progress = 0;
console.log("uploading-start-begin");
this.picUrl = null; this.picUrl = null;
// this.beforeUpload(item.file as any); // this.beforeUpload(item.file as any);
...@@ -69,20 +70,22 @@ export class UploadImageWithPreviewComponent implements OnDestroy, OnChanges { ...@@ -69,20 +70,22 @@ export class UploadImageWithPreviewComponent implements OnDestroy, OnChanges {
} }
this.uploading = true; this.uploading = true;
this.progress = 0; this.progress = 0;
console.log("uploading-start-end");
break; break;
case 'success': case 'success':
// this.isUploading = false; // this.isUploading = false;
// this.uploadSuccess(info.file.response); // this.uploadSuccess(info.file.response);
// this.audioUploaded.emit(info.file.response); // this.audioUploaded.emit(info.file.response);
console.log("uploading-success-begin");
this.uploadSuccess(info.file); this.uploadSuccess(info.file);
console.log("uploading-success-end");
break; break;
case 'progress': case 'progress':
console.log("uploading-progress-begin");
this.progress = parseInt(info.event.percent, 10); this.progress = parseInt(info.event.percent, 10);
this.doProgress(this.progress); this.doProgress(this.progress);
console.log("uploading-progress-end");
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment