diff --git a/apps/web-antd/src/views/system/client/data.tsx b/apps/web-antd/src/views/system/client/data.tsx
index d3ea0978..5bf7233e 100644
--- a/apps/web-antd/src/views/system/client/data.tsx
+++ b/apps/web-antd/src/views/system/client/data.tsx
@@ -1,9 +1,10 @@
-import type { FormSchemaGetter } from '#/adapter';
+import type { FormSchemaGetter, VxeGridProps } from '#/adapter';
import { DictEnum } from '@vben/constants';
import { getPopupContainer } from '@vben/utils';
-import { getDictOptions } from '#/utils/dict';
+import { getDict, getDictOptions } from '#/utils/dict';
+import { renderDict, renderDictTags } from '#/utils/render';
export const querySchema: FormSchemaGetter = () => [
{
@@ -26,6 +27,75 @@ export const querySchema: FormSchemaGetter = () => [
},
];
+export const columns: VxeGridProps['columns'] = [
+ { type: 'checkbox', width: 60 },
+ {
+ title: '客户端ID',
+ field: 'clientId',
+ showOverflow: true,
+ },
+ {
+ title: '客户端key',
+ field: 'clientKey',
+ },
+ {
+ title: '客户端密钥',
+ field: 'clientSecret',
+ },
+ {
+ title: '授权类型',
+ field: 'grantTypeList',
+ slots: {
+ default: ({ row }) => {
+ if (!row.grantTypeList) {
+ return '无';
+ }
+ return renderDictTags(
+ row.grantTypeList,
+ getDict(DictEnum.SYS_GRANT_TYPE),
+ );
+ },
+ },
+ },
+ {
+ title: '设备类型',
+ field: 'deviceType',
+ slots: {
+ default: ({ row }) => {
+ return renderDict(row.deviceType, DictEnum.SYS_DEVICE_TYPE);
+ },
+ },
+ },
+ {
+ title: 'token活跃时间',
+ field: 'activeTimeout',
+ formatter({ row }) {
+ return `${row.activeTimeout}秒`;
+ },
+ },
+ {
+ title: 'token超时时间',
+ field: 'timeout',
+ formatter({ row }) {
+ return `${row.timeout}秒`;
+ },
+ },
+ {
+ title: '状态',
+ field: 'status',
+ slots: {
+ default: 'status',
+ },
+ },
+ {
+ field: 'action',
+ fixed: 'right',
+ slots: { default: 'action' },
+ title: '操作',
+ width: 180,
+ },
+];
+
export const drawerSchema: FormSchemaGetter = () => [
{
component: 'Input',
diff --git a/apps/web-antd/src/views/system/client/index.vue b/apps/web-antd/src/views/system/client/index.vue
index e5825f99..a8c555fc 100644
--- a/apps/web-antd/src/views/system/client/index.vue
+++ b/apps/web-antd/src/views/system/client/index.vue
@@ -1,51 +1,170 @@
-
-
-
-
-
- {{ $t('pages.common.add') }}
-
-
+
+
+
+ 系统授权列表
+
+
+
+
+ {{ $t('pages.common.export') }}
+
+
+ {{ $t('pages.common.delete') }}
+
+
+ {{ $t('pages.common.add') }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('pages.common.edit') }}
+
+
+
+ {{ $t('pages.common.delete') }}
+
+
+
+
+
+