From 765ab7bc8d930d759a5b854f71addf8c3555cf79 Mon Sep 17 00:00:00 2001 From: wkc <978997012@qq.com> Date: Fri, 6 Feb 2026 09:51:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=9E=E7=8E=B0=E5=91=98=E5=B7=A5?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=BC=82=E6=AD=A5=E5=AF=BC=E5=85=A5=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加导入状态查询API (getImportStatus) - 添加导入失败记录查询API (getImportFailures) - 实现导入状态轮询机制 (每2秒轮询一次) - 添加轮询定时器生命周期管理 (beforeDestroy销毁) - 添加导入完成通知功能 - 添加查看导入失败记录按钮 (有失败时显示) - 添加失败记录对话框及分页查询功能 Co-Authored-By: Claude Sonnet 4.5 --- ruoyi-ui/src/api/ccdiEmployee.js | 17 +++ ruoyi-ui/src/views/ccdiEmployee/index.vue | 147 +++++++++++++++++++++- 2 files changed, 158 insertions(+), 6 deletions(-) diff --git a/ruoyi-ui/src/api/ccdiEmployee.js b/ruoyi-ui/src/api/ccdiEmployee.js index 58c281a..3946966 100644 --- a/ruoyi-ui/src/api/ccdiEmployee.js +++ b/ruoyi-ui/src/api/ccdiEmployee.js @@ -59,3 +59,20 @@ export function importData(data, updateSupport) { data: data }) } + +// 查询导入状态 +export function getImportStatus(taskId) { + return request({ + url: '/ccdi/employee/importStatus/' + taskId, + method: 'get' + }) +} + +// 查询导入失败记录 +export function getImportFailures(taskId, pageNum, pageSize) { + return request({ + url: '/ccdi/employee/importFailures/' + taskId, + method: 'get', + params: { pageNum, pageSize } + }) +} diff --git a/ruoyi-ui/src/views/ccdiEmployee/index.vue b/ruoyi-ui/src/views/ccdiEmployee/index.vue index 7f64769..80bc7f2 100644 --- a/ruoyi-ui/src/views/ccdiEmployee/index.vue +++ b/ruoyi-ui/src/views/ccdiEmployee/index.vue @@ -67,6 +67,15 @@ v-hasPermi="['ccdi:employee:import']" >导入 + + 查看导入失败记录 + @@ -255,11 +264,39 @@ title="导入结果" @close="handleImportResultClose" /> + + + + + + + + + + + + + + +