From 4a0428f1b2e72b24c14cc25d8f372a5131308798 Mon Sep 17 00:00:00 2001 From: AceDataCloud Date: Sat, 25 Feb 2023 16:04:00 +0800 Subject: [PATCH] add console filter types --- src/components/proxy/Info.vue | 4 +-- src/i18n/zh/application/field.ts | 8 ++++-- src/operators/application/operator.ts | 3 +- src/pages/console/application/List.vue | 39 ++++++++++++++++++++++---- 4 files changed, 43 insertions(+), 11 deletions(-) diff --git a/src/components/proxy/Info.vue b/src/components/proxy/Info.vue index 0f049aca..d651caad 100644 --- a/src/components/proxy/Info.vue +++ b/src/components/proxy/Info.vue @@ -3,7 +3,7 @@ {{ proxy?.title }}
- {{ proxy?.request?.method }} + {{ urlJoin(proxy?.endpoint, proxy?.path) }}
@@ -19,7 +19,7 @@ import { ElTag } from 'element-plus'; export default defineComponent({ name: 'ProxyInfo', components: { - ElTag + // ElTag }, props: { proxy: { diff --git a/src/i18n/zh/application/field.ts b/src/i18n/zh/application/field.ts index 5bf57151..04e4ee4c 100644 --- a/src/i18n/zh/application/field.ts +++ b/src/i18n/zh/application/field.ts @@ -1,11 +1,13 @@ export default { - remainingCount: '剩余次数', - usedCount: '已使用次数', + remainingCount: '剩余量', + usedCount: '使用量', apiKey: 'API Key', service: '服务', operation: '操作', amount: '数量', shouldPayPrice: '应付金额', api: 'API', - credential: '密钥' + proxy: '代理', + credential: '密钥', + name: '名称' }; diff --git a/src/operators/application/operator.ts b/src/operators/application/operator.ts index efd56ce3..ac14bde5 100644 --- a/src/operators/application/operator.ts +++ b/src/operators/application/operator.ts @@ -1,11 +1,12 @@ import { AxiosResponse } from 'axios'; import { httpClient } from '../instance'; -import { IApplication, IApplicationDetailResponse, IApplicationListResponse } from './models'; +import { IApplication, IApplicationDetailResponse, IApplicationListResponse, IApplicationType } from './models'; export interface IApplicationQuery { user_id?: string; offset?: number; limit?: number; + type?: IApplicationType; } class ApplicationOperator { diff --git a/src/pages/console/application/List.vue b/src/pages/console/application/List.vue index db108272..23ecdef0 100644 --- a/src/pages/console/application/List.vue +++ b/src/pages/console/application/List.vue @@ -9,8 +9,12 @@ + + {{ $t('application.field.api') }} + {{ $t('application.field.proxy') }} + - +