improve(ui):优化用户端成员页面
This commit is contained in:
1 parent
3bfa24dba1
commit
d1c8b40eca
2 files changed
+14
-2
No files matched your search
@@ -472,7 +472,7 @@ onMounted(() => {
|
||||
{{ statusLabel[member.status] || member.status }}
|
||||
</span>
|
||||
</div>
|
||||
<p class="text-sm text-gray-500 mt-0.5">@{{ authStore.tenant?.code }}</p>
|
||||
<p class="text-sm text-gray-500 mt-0.5 font-mono">{{ member.username }}@{{ authStore.tenant?.code }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -541,6 +541,10 @@ onMounted(() => {
|
||||
<h3 class="text-lg font-semibold text-gray-900">个人信息</h3>
|
||||
</div>
|
||||
<div class="card-body space-y-4">
|
||||
<div class="flex items-center justify-between py-2 border-b border-gray-100">
|
||||
<span class="text-sm text-gray-500">账号</span>
|
||||
<span class="text-sm font-medium text-gray-900 font-mono">{{ member.username }}@{{ authStore.tenant?.code }}</span>
|
||||
</div>
|
||||
<div class="flex items-center justify-between py-2 border-b border-gray-100">
|
||||
<span class="text-sm text-gray-500">用户名</span>
|
||||
<span class="text-sm font-medium text-gray-900">{{ member.username }}</span>
|
||||
|
||||
@@ -18,6 +18,7 @@ import { useExport } from '@/composables/useExport'
|
||||
const router = useRouter()
|
||||
const authStore = useTenantAuthStore()
|
||||
const teamEnabled = computed(() => !!authStore.tenant?.team_enabled)
|
||||
const tenantCode = computed(() => authStore.tenant?.code || '')
|
||||
|
||||
// 查询表单数据
|
||||
const filters = ref({
|
||||
@@ -301,6 +302,13 @@ const columns = computed<DataTableColumns<Member>>(() => [
|
||||
]),
|
||||
]),
|
||||
},
|
||||
{
|
||||
title: '账号',
|
||||
key: 'account',
|
||||
width: 180,
|
||||
render: (row) =>
|
||||
h('span', { class: 'text-sm font-mono text-gray-700' }, `${row.username}@${tenantCode.value}`),
|
||||
},
|
||||
{
|
||||
title: '角色',
|
||||
key: 'role',
|
||||
@@ -496,7 +504,7 @@ onMounted(() => {
|
||||
card-title-key="user"
|
||||
card-badge-key="status"
|
||||
card-subtitle-key="created_at"
|
||||
:card-fields="['role', 'quota_type', 'model_count', 'month_cost', 'updated_at']"
|
||||
:card-fields="['account', 'role', 'quota_type', 'model_count', 'month_cost', 'updated_at']"
|
||||
card-actions-key="actions"
|
||||
:row-click="(row: Member) => goDetail(row.id)"
|
||||
@update:page="fetchMembers"
|
||||
|
||||
Reference in new issue
Block a user