diff --git a/ruoyi-ui/src/views/ccdiEmployee/index.vue b/ruoyi-ui/src/views/ccdiEmployee/index.vue index ea6dd86..27310bb 100644 --- a/ruoyi-ui/src/views/ccdiEmployee/index.vue +++ b/ruoyi-ui/src/views/ccdiEmployee/index.vue @@ -687,6 +687,26 @@ export default { if (response.code === 200) { const taskId = response.data.taskId; + // 清除旧的导入记录(防止并发) + if (this.pollingTimer) { + clearInterval(this.pollingTimer); + this.pollingTimer = null; + } + + this.clearImportTaskFromStorage(); + + // 保存新任务的初始状态 + this.saveImportTaskToStorage({ + taskId: taskId, + status: 'PROCESSING', + timestamp: Date.now(), + hasFailures: false + }); + + // 重置状态 + this.showFailureButton = false; + this.currentTaskId = taskId; + // 显示后台处理提示 this.$notify({ title: '导入任务已提交',