|
@@ -880,9 +880,7 @@
|
|
|
<div>
|
|
|
<span>{{ unitJson[unitIndex].chapterInfo[0].taskJson[
|
|
|
itemTaskIndex
|
|
|
- ].isFinishSize2 ? unitJson[unitIndex].chapterInfo[0].taskJson[
|
|
|
- itemTaskIndex
|
|
|
- ].isFinishSize2 :0 }}M</span> / <span>{{ unitJson[unitIndex].chapterInfo[0].taskJson[
|
|
|
+ ].isFinishSize2}}M</span> / <span>{{ unitJson[unitIndex].chapterInfo[0].taskJson[
|
|
|
itemTaskIndex
|
|
|
].isAllSize2 }}M</span>
|
|
|
</div>
|
|
@@ -3882,9 +3880,11 @@ export default {
|
|
|
queueSize: 2,
|
|
|
leavePartsOnError: true,
|
|
|
};
|
|
|
- bucket
|
|
|
- .upload(params, options)
|
|
|
- .on("httpUploadProgress", function (evt) {
|
|
|
+ const request = bucket.upload(params, options)
|
|
|
+ request.on("httpUploadProgress", function (evt) {
|
|
|
+ // request.abort();
|
|
|
+ // this.abort();
|
|
|
+ // bucket.abortMultipartUpload.bind(bucket);
|
|
|
//这里可以写进度条
|
|
|
// console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
|
|
|
_this.unitJson[unitIndex].chapterInfo[0].taskJson[
|
|
@@ -3897,7 +3897,7 @@ export default {
|
|
|
1024 /
|
|
|
1024
|
|
|
).toFixed(2)
|
|
|
- this.$forceUpdate();
|
|
|
+ _this.$forceUpdate();
|
|
|
})
|
|
|
.send(function (err, data) {
|
|
|
// loading.close();
|
|
@@ -3918,8 +3918,9 @@ export default {
|
|
|
}, 1000);
|
|
|
_this.inputShow2 = true;
|
|
|
if (err) {
|
|
|
- var a = _this.$refs.upload1.uploadFiles;
|
|
|
- a.splice(a.length - 1, a.length);
|
|
|
+ console.log(err);
|
|
|
+ // var a = _this.$refs.upload1.uploadFiles;
|
|
|
+ // a.splice(a.length - 1, a.length);
|
|
|
_this.$message.error("上传失败");
|
|
|
} else {
|
|
|
if (type == 2 || type == 3) {
|
|
@@ -3954,7 +3955,7 @@ export default {
|
|
|
console.log(data.Location);
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
+ }
|
|
|
},
|
|
|
addunit() {
|
|
|
this.unitJson.push({
|