@gsp-svc/formdoc-upload 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/gsp-svc-formdoc-upload.umd.js +13 -6
- package/bundles/gsp-svc-formdoc-upload.umd.js.map +1 -1
- package/bundles/gsp-svc-formdoc-upload.umd.min.js +1 -1
- package/bundles/gsp-svc-formdoc-upload.umd.min.js.map +1 -1
- package/esm2015/lib/upload/file-upload/file-upload.component.js +14 -7
- package/esm5/lib/upload/file-upload/file-upload.component.js +14 -7
- package/fesm2015/gsp-svc-formdoc-upload.js +14 -7
- package/fesm2015/gsp-svc-formdoc-upload.js.map +1 -1
- package/fesm5/gsp-svc-formdoc-upload.js +14 -7
- package/fesm5/gsp-svc-formdoc-upload.js.map +1 -1
- package/package.json +1 -1
|
@@ -1124,7 +1124,7 @@
|
|
|
1124
1124
|
var uploadFileInfo = new UploadFileInfo();
|
|
1125
1125
|
uploadFileInfo.metadataId = uuid;
|
|
1126
1126
|
uploadFileInfo.fileName = fileInfo.name;
|
|
1127
|
-
uploadFileInfo.fileSize = fileInfo.
|
|
1127
|
+
uploadFileInfo.fileSize = fileInfo.size;
|
|
1128
1128
|
uploadFileInfo.state = state;
|
|
1129
1129
|
uploadFileInfo.securityInfo = this.securityInfoList[0];
|
|
1130
1130
|
//判断是否支持分片上传
|
|
@@ -1190,11 +1190,6 @@
|
|
|
1190
1190
|
_this.files[_this.files.indexOf(fileInfo)].uploadProcess = Number.parseInt((_this.uploadedChunk[uuid] / _this.fileTotalChunk[uuid] * 100).toFixed(0));
|
|
1191
1191
|
if (_this.uploadedChunk[uuid] == _this.fileTotalChunk[uuid]) {
|
|
1192
1192
|
if (multiResultList_1.length == _this.fileTotalChunk[uuid]) {
|
|
1193
|
-
_this.files[_this.files.indexOf(fileInfo)].uploadResult = true;
|
|
1194
|
-
_this.files[_this.files.indexOf(fileInfo)].isUploading = false;
|
|
1195
|
-
_this.uploadFileInfoList = _this.uploadFileInfoList.concat(uploadFileInfo);
|
|
1196
|
-
_this.uploadedFileInfoList = _this.uploadedFileInfoList.concat(uploadFileInfo);
|
|
1197
|
-
_this.uploadedFileTotal++;
|
|
1198
1193
|
/** @type {?} */
|
|
1199
1194
|
var completeMultiUploadRequest = new CompleteMultiUploadRequest;
|
|
1200
1195
|
completeMultiUploadRequest.metadataId = uuid;
|
|
@@ -1208,6 +1203,18 @@
|
|
|
1208
1203
|
* @param {?} res
|
|
1209
1204
|
* @return {?}
|
|
1210
1205
|
*/function (res) {
|
|
1206
|
+
if (res.status != 200) {
|
|
1207
|
+
_this.files[_this.files.indexOf(fileInfo)].uploadResult = false;
|
|
1208
|
+
_this.files[_this.files.indexOf(fileInfo)].isUploading = false;
|
|
1209
|
+
_this.files[_this.files.indexOf(fileInfo)].errorMessage = res.error.Message;
|
|
1210
|
+
}
|
|
1211
|
+
else {
|
|
1212
|
+
_this.files[_this.files.indexOf(fileInfo)].uploadResult = true;
|
|
1213
|
+
_this.files[_this.files.indexOf(fileInfo)].isUploading = false;
|
|
1214
|
+
_this.uploadFileInfoList = _this.uploadFileInfoList.concat(uploadFileInfo);
|
|
1215
|
+
_this.uploadedFileInfoList = _this.uploadedFileInfoList.concat(uploadFileInfo);
|
|
1216
|
+
_this.uploadedFileTotal++;
|
|
1217
|
+
}
|
|
1211
1218
|
}));
|
|
1212
1219
|
//后台异步拼接文档
|
|
1213
1220
|
}
|