Skip to content

Commit eba9bea

Browse files
authored
Merge pull request #3278 from 315944211/feat/show-account-id-in-admin-list
feat: show account id in account list
2 parents de38d62 + 25a9762 commit eba9bea

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

frontend/src/i18n/locales/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3158,6 +3158,7 @@ export default {
31583158
},
31593159
columns: {
31603160
name: 'Name',
3161+
id: 'Account ID',
31613162
platformType: 'Platform/Type',
31623163
platform: 'Platform',
31633164
type: 'Type',

frontend/src/i18n/locales/zh.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3196,6 +3196,7 @@ export default {
31963196
groupCountTotal: '共 {count} 个分组',
31973197
columns: {
31983198
name: '名称',
3199+
id: '账号ID',
31993200
platformType: '平台/类型',
32003201
platform: '平台',
32013202
type: '类型',

frontend/src/views/admin/AccountsView.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@
210210
<template #cell-select="{ row }">
211211
<input type="checkbox" :checked="isSelected(row.id)" @change="toggleSel(row.id)" class="rounded border-gray-300 text-primary-600 focus:ring-primary-500" />
212212
</template>
213+
<template #cell-id="{ value }">
214+
<span class="font-mono text-xs text-gray-500 dark:text-gray-400">#{{ value }}</span>
215+
</template>
213216
<template #cell-name="{ row, value }">
214217
<div class="flex flex-col">
215218
<span class="font-medium text-gray-900 dark:text-white">{{ value }}</span>
@@ -526,6 +529,7 @@ type AccountSortState = {
526529
sort_order: AccountSortOrder
527530
}
528531
const ACCOUNT_SORTABLE_KEYS = new Set([
532+
'id',
529533
'name',
530534
'status',
531535
'schedulable',
@@ -1136,6 +1140,7 @@ const allColumns = computed(() => {
11361140
const c = [
11371141
{ key: 'select', label: '', sortable: false },
11381142
{ key: 'name', label: t('admin.accounts.columns.name'), sortable: true },
1143+
{ key: 'id', label: t('admin.accounts.columns.id'), sortable: true },
11391144
{ key: 'platform_type', label: t('admin.accounts.columns.platformType'), sortable: false },
11401145
{ key: 'capacity', label: t('admin.accounts.columns.capacity'), sortable: false },
11411146
{ key: 'status', label: t('admin.accounts.columns.status'), sortable: true },

0 commit comments

Comments
 (0)