From 6a21b4ac8df3fadc2c3cf9a1974a6dfb9d63f3d5 Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Wed, 21 Oct 2026 15:36:34 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BA=BA=E5=91=98=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E6=8F=90=E7=A4=BA=E6=94=B9=E4=B8=BA=E6=8C=89=E5=B7=A5?= =?UTF-8?q?=E5=8F=B7=E5=85=A5=E5=BA=93=E5=B9=B6=E5=B1=95=E7=A4=BA=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E4=BA=BA=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- src/views/system/user.vue | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/views/system/user.vue b/src/views/system/user.vue index 266deea..dcdc6e3 100644 --- a/src/views/system/user.vue +++ b/src/views/system/user.vue @@ -364,6 +364,10 @@ 跳过 {{ oaSyncProgress.skipped }} +
+ 删除 + {{ oaSyncProgress.removed }} +
原始数据 JSON:{{ oaSyncProgress.dumpFilePath }} @@ -454,6 +458,7 @@ export default { total: 0, synced: 0, skipped: 0, + removed: 0, dumpFilePath: '', }, page: { @@ -692,17 +697,21 @@ export default { }); }, handleOaPersonFullSync() { - this.$confirm('全量同步将拉取 OA 全部人员及组织;已存在且 OA 更新时间一致的记录会跳过。是否继续?', '全量同步', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning', - }).then(() => { + this.$confirm( + '全量同步将按 OA 对齐人员:有登录名的按登录名更新且不修改密码,没有登录名但有工号的也会入库且不回填登录名,部门按 OA 当前部门重绑,OA 中已不存在或已离职的删除。是否继续?', + '全量同步', + { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + } + ).then(() => { this.startOaSync(false); }); }, handleOaPersonIncrementalSync() { this.$confirm( - '增量同步仅拉取本地最大 OA 更新时间之后有变更的人员;不存在的新增,已存在且更新时间不一致的修改,一致的跳过。是否继续?', + '增量同步仅拉取本地最大 OA 更新时间之后有变更的人员:已有的更新且不修改密码,没有的新增,部门按 OA 当前部门重绑,离职人员直接删除。是否继续?', '增量同步', { confirmButtonText: '确定', @@ -727,6 +736,7 @@ export default { total: 0, synced: 0, skipped: 0, + removed: 0, dumpFilePath: '', }; this.runOaSyncPages(); @@ -762,6 +772,7 @@ export default { this.oaSyncProgress.total = page.total || 0; this.oaSyncProgress.synced += page.syncedCount || 0; this.oaSyncProgress.skipped += page.skippedCount || 0; + this.oaSyncProgress.removed += page.removedCount || 0; if (page.dumpFilePath) { this.oaSyncProgress.dumpFilePath = page.dumpFilePath; } @@ -1492,6 +1503,10 @@ export default { color: #909399; } +.oa-sync-stat__value--remove { + color: #f56c6c; +} + .user-edit-dialog .el-form-item { margin-bottom: 24px; }