|
@@ -83,7 +83,10 @@ export default {
|
|
|
this.showDownLoading = true;
|
|
this.showDownLoading = true;
|
|
|
this.showError = false;
|
|
this.showError = false;
|
|
|
this.showSucc = false;
|
|
this.showSucc = false;
|
|
|
- this.checkTaskId(yearAndMonth, type);
|
|
|
|
|
|
|
+ this._checkTimeout = setTimeout(() => {
|
|
|
|
|
+ this.checkTaskId(yearAndMonth, type);
|
|
|
|
|
+ }, 3000)
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
deep: true
|
|
deep: true
|
|
@@ -128,17 +131,18 @@ export default {
|
|
|
|
|
|
|
|
if (status == 2) {
|
|
if (status == 2) {
|
|
|
this.showDownLoading = false;
|
|
this.showDownLoading = false;
|
|
|
|
|
+ removeStore({ name: this.taskStoreName });
|
|
|
this.downloadZip(yearAndMonth, taskId, fileType, fileSize);
|
|
this.downloadZip(yearAndMonth, taskId, fileType, fileSize);
|
|
|
} else if (status == 4) {
|
|
} else if (status == 4) {
|
|
|
// 任务过期或者不存在
|
|
// 任务过期或者不存在
|
|
|
removeStore({ name: this.taskStoreName });
|
|
removeStore({ name: this.taskStoreName });
|
|
|
this._checkTimeout = setTimeout(() => {
|
|
this._checkTimeout = setTimeout(() => {
|
|
|
this.checkTaskId(yearAndMonth, fileType);
|
|
this.checkTaskId(yearAndMonth, fileType);
|
|
|
- }, 3000)
|
|
|
|
|
|
|
+ }, 1500)
|
|
|
} else {
|
|
} else {
|
|
|
this._checkTimeout = setTimeout(() => {
|
|
this._checkTimeout = setTimeout(() => {
|
|
|
this.checkTaskId(yearAndMonth, fileType);
|
|
this.checkTaskId(yearAndMonth, fileType);
|
|
|
- }, 3000)
|
|
|
|
|
|
|
+ }, 1500)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|