From b4878845da244e59d63f7cbce4b79fe5db5e5abd Mon Sep 17 00:00:00 2001 From: dk <1260500659@qq.com> Date: Thu, 16 Apr 2026 20:27:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(UserOperateDialog):=20=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=92=8C=E7=BC=96=E8=BE=91=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E6=A1=86=E9=87=8C=EF=BC=8C=E6=98=B5=E7=A7=B0?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E6=98=AF=E5=BF=85=E5=A1=AB=E9=A1=B9=E3=80=82?= =?UTF-8?q?=20feat(User)=EF=BC=9A=E6=90=9C=E7=B4=A2=E6=A1=86=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=96=B0=E5=A2=9E=E6=8C=89=E2=80=9C=E6=89=80=E5=B1=9E?= =?UTF-8?q?=E5=85=AC=E5=8F=B8=E2=80=9D=E6=90=9C=E7=B4=A2=EF=BC=9Bindex?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=96=B0=E5=A2=9E=E2=80=9C=E6=89=80=E5=B1=9E?= =?UTF-8?q?=E5=85=AC=E5=8F=B8=E2=80=9D=E5=AD=97=E6=AE=B5=EF=BC=9B=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E3=80=81=E7=BC=96=E8=BE=91=E7=9A=84=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E6=A1=86=E5=BA=94=E8=AF=A5=E5=8F=AF=E4=BB=A5=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=88=96=E4=BF=AE=E6=94=B9=E2=80=9C=E6=89=80=E5=B1=9E=E5=85=AC?= =?UTF-8?q?=E5=8F=B8=E2=80=9D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/service/api/dict.ts | 8 ++ src/typings/api/system-manage.d.ts | 3 + src/views/system/user/index.vue | 85 ++++++++++++------- .../user/modules/user-operate-dialog.vue | 5 ++ src/views/system/user/modules/user-search.vue | 14 +++ 5 files changed, 84 insertions(+), 31 deletions(-) diff --git a/src/service/api/dict.ts b/src/service/api/dict.ts index ac268c1..09822ec 100644 --- a/src/service/api/dict.ts +++ b/src/service/api/dict.ts @@ -102,3 +102,11 @@ export function fetchBatchDeleteDictData(ids: number[]) { method: 'delete' }); } + +/** 通过岗位编码获取该字典的所有字典数据 */ +export function fetchGetDictDataByCode(code: String) { + return request>({ + url: `${DICT_DATA_PREFIX}/code?code=${code}`, + method: 'get' + }); +} diff --git a/src/typings/api/system-manage.d.ts b/src/typings/api/system-manage.d.ts index 1769a03..2ef8ec2 100644 --- a/src/typings/api/system-manage.d.ts +++ b/src/typings/api/system-manage.d.ts @@ -130,6 +130,7 @@ declare namespace Api { deptName?: string | null; positionId?: number | null; positionName?: string | null; + company?: string | null; email?: string | null; mobile?: string | null; sex?: UserGender | null; @@ -148,6 +149,7 @@ declare namespace Api { mobile?: string; deptId?: number; roleId?: number; + company?: string; } >; @@ -158,6 +160,7 @@ declare namespace Api { remark?: string | null; positionId?: number | null; resignedAt?: number | null; + company?: string | null; email?: string | null; mobile?: string | null; sex?: UserGender | null; diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 56320fc..3a94aa1 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -1,15 +1,16 @@