Merge pull request #1153 from hging/main

feat: add ungrouped filter to account
This commit is contained in:
Wesley Liddick
2026-03-19 21:55:28 +08:00
committed by GitHub
9 changed files with 47 additions and 4 deletions

View File

@@ -66,6 +66,7 @@ export async function listWithEtag(
platform?: string
type?: string
status?: string
group?: string
search?: string
lite?: string
},

View File

@@ -26,5 +26,9 @@ const updateGroup = (value: string | number | boolean | null) => { emit('update:
const pOpts = computed(() => [{ value: '', label: t('admin.accounts.allPlatforms') }, { value: 'anthropic', label: 'Anthropic' }, { value: 'openai', label: 'OpenAI' }, { value: 'gemini', label: 'Gemini' }, { value: 'antigravity', label: 'Antigravity' }, { value: 'sora', label: 'Sora' }])
const tOpts = computed(() => [{ value: '', label: t('admin.accounts.allTypes') }, { value: 'oauth', label: t('admin.accounts.oauthType') }, { value: 'setup-token', label: t('admin.accounts.setupToken') }, { value: 'apikey', label: t('admin.accounts.apiKey') }, { value: 'bedrock', label: 'AWS Bedrock' }])
const sOpts = computed(() => [{ value: '', label: t('admin.accounts.allStatus') }, { value: 'active', label: t('admin.accounts.status.active') }, { value: 'inactive', label: t('admin.accounts.status.inactive') }, { value: 'error', label: t('admin.accounts.status.error') }, { value: 'rate_limited', label: t('admin.accounts.status.rateLimited') }, { value: 'temp_unschedulable', label: t('admin.accounts.status.tempUnschedulable') }])
const gOpts = computed(() => [{ value: '', label: t('admin.accounts.allGroups') }, ...(props.groups || []).map(g => ({ value: String(g.id), label: g.name }))])
const gOpts = computed(() => [
{ value: '', label: t('admin.accounts.allGroups') },
{ value: 'ungrouped', label: t('admin.accounts.ungroupedGroup') },
...(props.groups || []).map(g => ({ value: String(g.id), label: g.name }))
])
</script>

View File

@@ -1883,6 +1883,7 @@ export default {
allTypes: 'All Types',
allStatus: 'All Status',
allGroups: 'All Groups',
ungroupedGroup: 'Ungrouped',
oauthType: 'OAuth',
setupToken: 'Setup Token',
apiKey: 'API Key',

View File

@@ -1965,6 +1965,7 @@ export default {
allTypes: '全部类型',
allStatus: '全部状态',
allGroups: '全部分组',
ungroupedGroup: '未分配分组',
oauthType: 'OAuth',
// Schedulable toggle
schedulable: '参与调度',

View File

@@ -758,6 +758,7 @@ const refreshAccountsIncrementally = async () => {
platform?: string
type?: string
status?: string
group?: string
search?: string
},