mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-21 14:19:18 +08:00
Merge pull request #3278 from 315944211/feat/show-account-id-in-admin-list
feat: show account id in account list
This commit is contained in:
@@ -3158,6 +3158,7 @@ export default {
|
||||
},
|
||||
columns: {
|
||||
name: 'Name',
|
||||
id: 'Account ID',
|
||||
platformType: 'Platform/Type',
|
||||
platform: 'Platform',
|
||||
type: 'Type',
|
||||
|
||||
@@ -3196,6 +3196,7 @@ export default {
|
||||
groupCountTotal: '共 {count} 个分组',
|
||||
columns: {
|
||||
name: '名称',
|
||||
id: '账号ID',
|
||||
platformType: '平台/类型',
|
||||
platform: '平台',
|
||||
type: '类型',
|
||||
|
||||
@@ -210,6 +210,9 @@
|
||||
<template #cell-select="{ row }">
|
||||
<input type="checkbox" :checked="isSelected(row.id)" @change="toggleSel(row.id)" class="rounded border-gray-300 text-primary-600 focus:ring-primary-500" />
|
||||
</template>
|
||||
<template #cell-id="{ value }">
|
||||
<span class="font-mono text-xs text-gray-500 dark:text-gray-400">#{{ value }}</span>
|
||||
</template>
|
||||
<template #cell-name="{ row, value }">
|
||||
<div class="flex flex-col">
|
||||
<span class="font-medium text-gray-900 dark:text-white">{{ value }}</span>
|
||||
@@ -526,6 +529,7 @@ type AccountSortState = {
|
||||
sort_order: AccountSortOrder
|
||||
}
|
||||
const ACCOUNT_SORTABLE_KEYS = new Set([
|
||||
'id',
|
||||
'name',
|
||||
'status',
|
||||
'schedulable',
|
||||
@@ -1136,6 +1140,7 @@ const allColumns = computed(() => {
|
||||
const c = [
|
||||
{ key: 'select', label: '', sortable: false },
|
||||
{ key: 'name', label: t('admin.accounts.columns.name'), sortable: true },
|
||||
{ key: 'id', label: t('admin.accounts.columns.id'), sortable: true },
|
||||
{ key: 'platform_type', label: t('admin.accounts.columns.platformType'), sortable: false },
|
||||
{ key: 'capacity', label: t('admin.accounts.columns.capacity'), sortable: false },
|
||||
{ key: 'status', label: t('admin.accounts.columns.status'), sortable: true },
|
||||
|
||||
Reference in New Issue
Block a user