|
@@ -343,6 +343,10 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
this.info = "上传中,请稍等";
|
|
this.info = "上传中,请稍等";
|
|
|
}
|
|
}
|
|
|
|
|
+ this.percentage += 1;
|
|
|
|
|
+ if (this.percentage >= 99) {
|
|
|
|
|
+ this.percentage = 99;
|
|
|
|
|
+ }
|
|
|
}, 1000);
|
|
}, 1000);
|
|
|
this.form_name = file.name;
|
|
this.form_name = file.name;
|
|
|
this.hasDrag = false;
|
|
this.hasDrag = false;
|
|
@@ -356,7 +360,7 @@ export default {
|
|
|
this.percentage = Math.floor(
|
|
this.percentage = Math.floor(
|
|
|
(progressEvent.loaded / progressEvent.total) * 100
|
|
(progressEvent.loaded / progressEvent.total) * 100
|
|
|
);
|
|
);
|
|
|
- this.percentage = this.percentage == 100 ? 90 : this.percentage;
|
|
|
|
|
|
|
+ this.percentage = this.percentage == 100 ? 60 : this.percentage;
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
|
let res = await this.$axios.post(
|
|
let res = await this.$axios.post(
|
|
@@ -392,7 +396,7 @@ export default {
|
|
|
if (res.data.success) {
|
|
if (res.data.success) {
|
|
|
this.showPage = 3;
|
|
this.showPage = 3;
|
|
|
// 计算出解析的时间
|
|
// 计算出解析的时间
|
|
|
- this.timer = setInterval(() => {
|
|
|
|
|
|
|
+ this.timer = setInterval(async () => {
|
|
|
this.time_s += 1;
|
|
this.time_s += 1;
|
|
|
this.parsePercentage += 1;
|
|
this.parsePercentage += 1;
|
|
|
if (this.parsePercentage >= 90) {
|
|
if (this.parsePercentage >= 90) {
|