From d55f879846c4eba98bc1603c0c656870ad4a64e9 Mon Sep 17 00:00:00 2001 From: yaoyn Date: Wed, 27 Mar 2024 17:29:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=A1=B5=E5=A2=9E=E5=8A=A0=E5=90=8C=E6=AD=A5=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E4=BA=BA=E5=91=98=E6=8C=89=E9=92=AE=20=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=AE=A1=E7=90=86=E5=88=97=E8=A1=A8=E9=A1=B5=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E7=94=A8=E6=88=B7=E5=8F=AF=E8=AE=BE=E7=BD=AE=E4=B8=BA?= =?UTF-8?q?=E5=85=A8=E5=B1=80=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user/index.ts | 15 +++++++++++++++ src/views/system/user/index.vue | 25 +++++++++++++++++++++---- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index 3aeaad5..2995f5b 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -25,6 +25,7 @@ enum Api { User = '/organization/user', MultiInfo = '/organization/user/info/multi', Password = '/organization/user/reset-password', + syncOrgAndUser='/organization/syncOrgAndUser/fromDataCenter', enabled = '/organization/user/enabled', Online = '/organization/user/online-users/page', OffOnline = '/organization/user/offline-users', @@ -107,6 +108,20 @@ export async function resetUserPassword(id: String, mode: ErrorMessageMode = 'mo }, ); } +/** + * @description: 同步部门人员 + */ +export async function syncOrgAndUser(source: String, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.syncOrgAndUser, + data: { source }, + }, + { + errorMessageMode: mode, + }, + ); +} /** * @description: 更新用户 diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 77e9dee..bda4bc0 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -6,10 +6,13 @@ {{ t('新增用户') }} - {{ + {{ t('重置密码') }} - + {{ + t('同步组织人员') + }} + {{ lockText }} @@ -43,7 +46,7 @@