From 6e219344f6acb5f582fdc7e8248a4f2db61348f2 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Wed, 23 Sep 2026 17:32:31 +0800 Subject: [PATCH] fix: add user resource filter for users --- ui/src/views/system/identity/groups/index.vue | 7 +++++++ ui/src/views/system/identity/users/index.vue | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/ui/src/views/system/identity/groups/index.vue b/ui/src/views/system/identity/groups/index.vue index 7c8ba59de26..b434d988feb 100644 --- a/ui/src/views/system/identity/groups/index.vue +++ b/ui/src/views/system/identity/groups/index.vue @@ -10,6 +10,8 @@ import CreateOrUpdateGroupDialog from './dialog/CreateOrUpdateGroupDialog.vue' import CreateGroupMemberDialog from './dialog/CreateGroupMemberDialog.vue' import { useStore } from '@/stores' import perm from '@/permission/index.ts' +import { LOGIN_METHOD } from '@/api/enums' +import { LOGIN_METHOD_LABELS } from '@/constants' const { auth } = useStore() /* 选择工作空间列表 */ @@ -116,6 +118,11 @@ const memberSearchQuery = ref>() const memberSearchFields: OptionItem[] = [ { label: '用户名', value: 'username' }, { label: '姓名', value: 'nick_name' }, + { + label: '用户来源', + value: 'source', + options: Object.entries(LOGIN_METHOD_LABELS).map(([value, label]) => ({ label: value === LOGIN_METHOD.LOCAL ? '本地创建' : label, value })), + }, ] const userGroupMembers = ref([]) function handleMemberSearch(query?: Dict) { diff --git a/ui/src/views/system/identity/users/index.vue b/ui/src/views/system/identity/users/index.vue index 8daa6d801fc..97c94e11ff0 100644 --- a/ui/src/views/system/identity/users/index.vue +++ b/ui/src/views/system/identity/users/index.vue @@ -41,6 +41,11 @@ const searchFields: OptionItem[] = [ { label: '禁用', value: false }, ], }, + { + label: '用户来源', + value: 'source', + options: Object.entries(LOGIN_METHOD_LABELS).map(([value, label]) => ({ label: value === LOGIN_METHOD.LOCAL ? '本地创建' : label, value })), + }, ] const systemUserQuery = ref>()