文件上传进度只显示整数部分

This commit is contained in:
virusdefender 2015-10-28 11:10:31 +08:00
parent 71495350d0
commit 3d6daf0d7c
5 changed files with 4 additions and 5848 deletions

View File

@ -145,7 +145,7 @@ require(["jquery", "avalon", "editor", "uploader", "bsAlert", "csrfToken", "tagE
}
},
function (file, percentage) {
vm.uploadProgress = percentage;
vm.uploadProgress = praseInt(percentage * 100);
});
var tagAutoCompleteList = [];

View File

@ -147,7 +147,7 @@ require(["jquery", "avalon", "editor", "uploader", "bsAlert", "csrfToken", "tagE
}
},
function (file, percentage) {
vm.uploadProgress = percentage;
vm.uploadProgress = parseInt(percentage * 100);
}
);

File diff suppressed because it is too large Load Diff

View File

@ -104,7 +104,7 @@
<small class="text-info">请将所有测试用例打包在一个文件中上传所有文件要在压缩包的根目录且输入输出文件名要以从1开始连续数字标识要对应例如<br>
1.in 1.out 2.in 2.out
</small>
<p>上传进度<span ms-text="uploadProgress * 100"></span>%</p>
<p>上传进度<span ms-text="uploadProgress"></span>%</p>
<table class="table table-striped" ms-visible="uploadSuccess">
<tr>
<td>编号</td>

View File

@ -110,7 +110,7 @@
<small class="text-info">请将所有测试用例打包在一个文件中上传所有文件要在压缩包的根目录且输入输出文件名要以从1开始连续数字标识要对应例如<br>
1.in 1.out 2.in 2.out
</small>
<p>上传进度<span ms-text="uploadProgress * 100"></span>%</p>
<p>上传进度<span ms-text="uploadProgress"></span>%</p>
<table class="table table-striped" ms-visible="uploadSuccess">
<tr>
<td>编号</td>