Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ui/src/views/system/identity/groups/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()

/* 选择工作空间列表 */
Expand Down Expand Up @@ -116,6 +118,11 @@ const memberSearchQuery = ref<Dict<unknown>>()
const memberSearchFields: OptionItem<string>[] = [
{ 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<SystemUserGroupMember[]>([])
function handleMemberSearch(query?: Dict<unknown>) {
Expand Down
5 changes: 5 additions & 0 deletions ui/src/views/system/identity/users/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ const searchFields: OptionItem<string>[] = [
{ 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<Dict<unknown>>()

Expand Down
Loading