|
|
@@ -22,6 +22,7 @@
|
|
|
<el-result v-if="showError" icon="error" title="文件下载失败">
|
|
|
<template slot="extra">
|
|
|
<el-button type="primary" size="medium" @click="handleAgainDown">重新下载</el-button>
|
|
|
+ <el-button type="primary" size="medium" @click="handleClose">关闭窗口</el-button>
|
|
|
</template>
|
|
|
</el-result>
|
|
|
|
|
|
@@ -97,6 +98,7 @@ export default {
|
|
|
handleAgainDown() {
|
|
|
const { type, yearAndMonth } = this.downloadTaskObj;
|
|
|
this.showError = false;
|
|
|
+ this.showDownLoading = true;
|
|
|
this.checkTaskId(yearAndMonth, type);
|
|
|
},
|
|
|
handleClose() {
|
|
|
@@ -104,6 +106,7 @@ export default {
|
|
|
this.showSucc = false;
|
|
|
this.showDownLoading = false;
|
|
|
this.isOpenDownPanel = false;
|
|
|
+ this.$store.commit("SET_TASK_OPEND_STATUS", false);
|
|
|
},
|
|
|
/**
|
|
|
* 检查下载任务进程
|
|
|
@@ -126,7 +129,8 @@ export default {
|
|
|
if (status == 2) {
|
|
|
this.showDownLoading = false;
|
|
|
this.downloadZip(yearAndMonth, taskId, fileType, fileSize);
|
|
|
- } else if (status == 3) {
|
|
|
+ } else if (status == 4) {
|
|
|
+ // 任务过期或者不存在
|
|
|
removeStore({ name: this.taskStoreName });
|
|
|
this._checkTimeout = setTimeout(() => {
|
|
|
this.checkTaskId(yearAndMonth, fileType);
|