From 86b013a9d0b735ee8d2ab079544782ea386497f3 Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Sat, 20 Jun 2020 15:00:46 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E4=B8=8A=E4=BC=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9=E8=BF=9B=E5=BA=A6=E6=9D=A1=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/ui/all-file/all-file.component.html | 6 +++--- src/app/ui/all-file/all-file.component.ts | 14 +++++++------- .../ui/upload-files/upload-files.component.html | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/app/ui/all-file/all-file.component.html b/src/app/ui/all-file/all-file.component.html index c8e9931..172c88f 100644 --- a/src/app/ui/all-file/all-file.component.html +++ b/src/app/ui/all-file/all-file.component.html @@ -56,11 +56,11 @@
- 返回一级目录 + 全部文件   - 返回上一级目录 + 返回上一级 | - 全部文件 + 全部文件 {{selectedDataBank}}
diff --git a/src/app/ui/all-file/all-file.component.ts b/src/app/ui/all-file/all-file.component.ts index b88030a..5f24f82 100644 --- a/src/app/ui/all-file/all-file.component.ts +++ b/src/app/ui/all-file/all-file.component.ts @@ -401,7 +401,7 @@ export class AllFileComponent { let fileSize = file.size || null //上传文件的总大小 let shardSize = 5 * 1024 * 1024 //5MB一个分片 this.uploadisLoading2 = true - // this.uploadProgress2 = 0 + "/" + filesnum + this.uploadProgress2 = 0 + "/" + filesnum this.child.uploading(file) //子组件 当前文件正在上传 if (file && fileSize<=shardSize) { //上传文件<=5MB时 @@ -412,9 +412,9 @@ export class AllFileComponent { this.objectName2 = data.objectName this.filesTag2.push("data") - // this.zone.run(() => { - //   setTimeout(() => this.uploadProgress2 = this.filesTag2.length + "/" + filesnum, 0); - // }); + this.zone.run(() => { +   setTimeout(() => this.uploadProgress2 = this.filesTag2.length + "/" + filesnum, 0); + }); result("成功了") this.child.endUpload(file) //子组件 当前文件上传成功 @@ -485,9 +485,9 @@ export class AllFileComponent { this.http.post(`/api/CompleteMultipartUpload/drives/${this.objectName2}`,data,{params:paramsData}).subscribe(data=>{ this.filesTag2.push("data") - // this.zone.run(() => { - //   setTimeout(() => this.uploadProgress2 = this.filesTag2.length + "/" + filesnum, 0); - // }); + this.zone.run(() => { +   setTimeout(() => this.uploadProgress2 = this.filesTag2.length + "/" + filesnum, 0); + }); result("成功了") diff --git a/src/app/ui/upload-files/upload-files.component.html b/src/app/ui/upload-files/upload-files.component.html index 29904de..7d66aa2 100644 --- a/src/app/ui/upload-files/upload-files.component.html +++ b/src/app/ui/upload-files/upload-files.component.html @@ -1,8 +1,8 @@
- - - + + +