Skip to content

Commit 8194022

Browse files
committed
fix: user source display
1 parent acf775b commit 8194022

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎ui/src/views/system/identity/groups/index.vue‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { onMounted, ref, useTemplateRef } from 'vue'
33
import WorkspaceApi from '@/api/admin/system/workspace'
44
import UserGroupsApi from '@/api/admin/system/user-groups'
5-
import type { Dict, OptionItem, WorkspaceItem, SystemUserGroup, SystemUserGroupMember } from '@/api/types'
5+
import type { Dict, OptionItem, WorkspaceItem, SystemUserGroup, SystemUserGroupMember, LoginMethod } from '@/api/types'
66
import { MsgConfirm, MsgSuccess } from '@/utils/message'
77
import WorkspaceDropdown from '@/components/business/workspace-dropdown/index.vue'
88
import MkSearchList from '@/components/mk-search-list/index.vue'
@@ -253,7 +253,11 @@ onMounted(() => {
253253
<MkTagGroup :tags="row.roles" />
254254
</template>
255255
</el-table-column>
256-
<el-table-column prop="source" label="用户来源" min-width="198" show-overflow-tooltip />
256+
<el-table-column prop="source" label="用户来源" min-width="198" show-overflow-tooltip>
257+
<template #default="{ row }">
258+
{{ row.source === LOGIN_METHOD.LOCAL ? '系统用户' : LOGIN_METHOD_LABELS[row.source as LoginMethod] }}
259+
</template>
260+
</el-table-column>
257261
<el-table-column label="操作" width="70" fixed="right">
258262
<template #default="{ row }">
259263
<!-- 移除成员 -->

0 commit comments

Comments
 (0)