From 65a07079d07c9fb12c7c9451238ca6dd60818265 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Sun, 21 Jan 2024 00:19:15 +0800 Subject: [PATCH] feat: todo --- .../devtools/genCodeParam/ClientModal.vue | 97 +++++++++++ .../devtools/genCodeParam/client.data.ts | 154 ++++++++++++++++++ .../system/devtools/genCodeParam/index.vue | 143 ++++++++++++++++ .../devtools/genCustomObj/ClientModal.vue | 97 +++++++++++ .../devtools/genCustomObj/client.data.ts | 154 ++++++++++++++++++ .../system/devtools/genCustomObj/index.vue | 143 ++++++++++++++++ .../devtools/genDataBaseType/ClientModal.vue | 97 +++++++++++ .../devtools/genDataBaseType/client.data.ts | 154 ++++++++++++++++++ .../system/devtools/genDataBaseType/index.vue | 143 ++++++++++++++++ .../devtools/genQueryType/ClientModal.vue | 97 +++++++++++ .../devtools/genQueryType/client.data.ts | 154 ++++++++++++++++++ .../system/devtools/genQueryType/index.vue | 143 ++++++++++++++++ .../devtools/genShowType/ClientModal.vue | 97 +++++++++++ .../devtools/genShowType/client.data.ts | 154 ++++++++++++++++++ .../system/devtools/genShowType/index.vue | 143 ++++++++++++++++ .../system/devtools/genTable/ClientModal.vue | 97 +++++++++++ .../system/devtools/genTable/client.data.ts | 154 ++++++++++++++++++ src/views/system/devtools/genTable/index.vue | 143 ++++++++++++++++ .../devtools/genValidateType/ClientModal.vue | 97 +++++++++++ .../devtools/genValidateType/client.data.ts | 154 ++++++++++++++++++ .../system/devtools/genValidateType/index.vue | 143 ++++++++++++++++ .../system/devtools/template/ClientModal.vue | 97 +++++++++++ .../system/devtools/template/client.data.ts | 154 ++++++++++++++++++ src/views/system/devtools/template/index.vue | 143 ++++++++++++++++ 24 files changed, 3152 insertions(+) create mode 100644 src/views/system/devtools/genCodeParam/ClientModal.vue create mode 100644 src/views/system/devtools/genCodeParam/client.data.ts create mode 100644 src/views/system/devtools/genCodeParam/index.vue create mode 100644 src/views/system/devtools/genCustomObj/ClientModal.vue create mode 100644 src/views/system/devtools/genCustomObj/client.data.ts create mode 100644 src/views/system/devtools/genCustomObj/index.vue create mode 100644 src/views/system/devtools/genDataBaseType/ClientModal.vue create mode 100644 src/views/system/devtools/genDataBaseType/client.data.ts create mode 100644 src/views/system/devtools/genDataBaseType/index.vue create mode 100644 src/views/system/devtools/genQueryType/ClientModal.vue create mode 100644 src/views/system/devtools/genQueryType/client.data.ts create mode 100644 src/views/system/devtools/genQueryType/index.vue create mode 100644 src/views/system/devtools/genShowType/ClientModal.vue create mode 100644 src/views/system/devtools/genShowType/client.data.ts create mode 100644 src/views/system/devtools/genShowType/index.vue create mode 100644 src/views/system/devtools/genTable/ClientModal.vue create mode 100644 src/views/system/devtools/genTable/client.data.ts create mode 100644 src/views/system/devtools/genTable/index.vue create mode 100644 src/views/system/devtools/genValidateType/ClientModal.vue create mode 100644 src/views/system/devtools/genValidateType/client.data.ts create mode 100644 src/views/system/devtools/genValidateType/index.vue create mode 100644 src/views/system/devtools/template/ClientModal.vue create mode 100644 src/views/system/devtools/template/client.data.ts create mode 100644 src/views/system/devtools/template/index.vue diff --git a/src/views/system/devtools/genCodeParam/ClientModal.vue b/src/views/system/devtools/genCodeParam/ClientModal.vue new file mode 100644 index 0000000..ebacf06 --- /dev/null +++ b/src/views/system/devtools/genCodeParam/ClientModal.vue @@ -0,0 +1,97 @@ + + diff --git a/src/views/system/devtools/genCodeParam/client.data.ts b/src/views/system/devtools/genCodeParam/client.data.ts new file mode 100644 index 0000000..39b54c6 --- /dev/null +++ b/src/views/system/devtools/genCodeParam/client.data.ts @@ -0,0 +1,154 @@ +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; + +export const columns: BasicColumn[] = [ + { + title: '客户端Id', + dataIndex: 'clientId', + width: 100 + }, + { + title: '客户端密钥', + dataIndex: 'clientSecret', + width: 100 + }, + { + title: '授权类型', + dataIndex: 'authorizedGrantTypes', + width: 130 + }, + { + title: '授权范围', + dataIndex: 'scope', + width: 90 + }, + { + title: '令牌过期秒数', + dataIndex: 'accessTokenValidity', + width: 130 + }, + { + title: '令牌过期秒数', + dataIndex: 'refreshTokenValidity', + width: 130 + }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 100 + } +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'clientId', + label: '客户端编码', + component: 'Input', + componentProps: { + placeholder: '请输入客户端编码', + }, + colProps: { span: 8 }, + }, + { + field: 'dateRange', + label: '创建时间', + component: 'RangePicker', + componentProps: { + style: { width:'100%' }, + valueFormat: 'YYYY-MM-DD', + placeholder: ['开始日期','结束日期'] + }, + colProps: { span: 8 } + } +]; + +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'ID', + component: 'Input', + show: false + }, + { + field: 'clientId', + label: '客户端Id', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'clientSecret', + label: '客户端密钥', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'authorizedGrantTypes', + label: '授权类型', + component: 'InputTextArea', + required:true, + componentProps: { + rows: 3 + }, + colProps: { + span: 24 + } + }, + { + field: 'scope', + label: '授权范围', + component: 'Input', + required:true, + colProps: { + span: 12 + } + }, + { + field: 'accessTokenValidity', + label: '过期秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'refreshTokenValidity', + label: '刷新秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'webServerRedirectUri', + label: '回调地址', + component: 'Input', + colProps: { + span: 12 + } + }, + { + field: 'additionalInformation', + label: '附加说明', + component: 'InputTextArea', + componentProps: { + rows: 6 + }, + colProps: { + span: 24 + } + } +]; diff --git a/src/views/system/devtools/genCodeParam/index.vue b/src/views/system/devtools/genCodeParam/index.vue new file mode 100644 index 0000000..41981c5 --- /dev/null +++ b/src/views/system/devtools/genCodeParam/index.vue @@ -0,0 +1,143 @@ + + + diff --git a/src/views/system/devtools/genCustomObj/ClientModal.vue b/src/views/system/devtools/genCustomObj/ClientModal.vue new file mode 100644 index 0000000..ebacf06 --- /dev/null +++ b/src/views/system/devtools/genCustomObj/ClientModal.vue @@ -0,0 +1,97 @@ + + diff --git a/src/views/system/devtools/genCustomObj/client.data.ts b/src/views/system/devtools/genCustomObj/client.data.ts new file mode 100644 index 0000000..39b54c6 --- /dev/null +++ b/src/views/system/devtools/genCustomObj/client.data.ts @@ -0,0 +1,154 @@ +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; + +export const columns: BasicColumn[] = [ + { + title: '客户端Id', + dataIndex: 'clientId', + width: 100 + }, + { + title: '客户端密钥', + dataIndex: 'clientSecret', + width: 100 + }, + { + title: '授权类型', + dataIndex: 'authorizedGrantTypes', + width: 130 + }, + { + title: '授权范围', + dataIndex: 'scope', + width: 90 + }, + { + title: '令牌过期秒数', + dataIndex: 'accessTokenValidity', + width: 130 + }, + { + title: '令牌过期秒数', + dataIndex: 'refreshTokenValidity', + width: 130 + }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 100 + } +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'clientId', + label: '客户端编码', + component: 'Input', + componentProps: { + placeholder: '请输入客户端编码', + }, + colProps: { span: 8 }, + }, + { + field: 'dateRange', + label: '创建时间', + component: 'RangePicker', + componentProps: { + style: { width:'100%' }, + valueFormat: 'YYYY-MM-DD', + placeholder: ['开始日期','结束日期'] + }, + colProps: { span: 8 } + } +]; + +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'ID', + component: 'Input', + show: false + }, + { + field: 'clientId', + label: '客户端Id', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'clientSecret', + label: '客户端密钥', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'authorizedGrantTypes', + label: '授权类型', + component: 'InputTextArea', + required:true, + componentProps: { + rows: 3 + }, + colProps: { + span: 24 + } + }, + { + field: 'scope', + label: '授权范围', + component: 'Input', + required:true, + colProps: { + span: 12 + } + }, + { + field: 'accessTokenValidity', + label: '过期秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'refreshTokenValidity', + label: '刷新秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'webServerRedirectUri', + label: '回调地址', + component: 'Input', + colProps: { + span: 12 + } + }, + { + field: 'additionalInformation', + label: '附加说明', + component: 'InputTextArea', + componentProps: { + rows: 6 + }, + colProps: { + span: 24 + } + } +]; diff --git a/src/views/system/devtools/genCustomObj/index.vue b/src/views/system/devtools/genCustomObj/index.vue new file mode 100644 index 0000000..41981c5 --- /dev/null +++ b/src/views/system/devtools/genCustomObj/index.vue @@ -0,0 +1,143 @@ + + + diff --git a/src/views/system/devtools/genDataBaseType/ClientModal.vue b/src/views/system/devtools/genDataBaseType/ClientModal.vue new file mode 100644 index 0000000..ebacf06 --- /dev/null +++ b/src/views/system/devtools/genDataBaseType/ClientModal.vue @@ -0,0 +1,97 @@ + + diff --git a/src/views/system/devtools/genDataBaseType/client.data.ts b/src/views/system/devtools/genDataBaseType/client.data.ts new file mode 100644 index 0000000..39b54c6 --- /dev/null +++ b/src/views/system/devtools/genDataBaseType/client.data.ts @@ -0,0 +1,154 @@ +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; + +export const columns: BasicColumn[] = [ + { + title: '客户端Id', + dataIndex: 'clientId', + width: 100 + }, + { + title: '客户端密钥', + dataIndex: 'clientSecret', + width: 100 + }, + { + title: '授权类型', + dataIndex: 'authorizedGrantTypes', + width: 130 + }, + { + title: '授权范围', + dataIndex: 'scope', + width: 90 + }, + { + title: '令牌过期秒数', + dataIndex: 'accessTokenValidity', + width: 130 + }, + { + title: '令牌过期秒数', + dataIndex: 'refreshTokenValidity', + width: 130 + }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 100 + } +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'clientId', + label: '客户端编码', + component: 'Input', + componentProps: { + placeholder: '请输入客户端编码', + }, + colProps: { span: 8 }, + }, + { + field: 'dateRange', + label: '创建时间', + component: 'RangePicker', + componentProps: { + style: { width:'100%' }, + valueFormat: 'YYYY-MM-DD', + placeholder: ['开始日期','结束日期'] + }, + colProps: { span: 8 } + } +]; + +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'ID', + component: 'Input', + show: false + }, + { + field: 'clientId', + label: '客户端Id', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'clientSecret', + label: '客户端密钥', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'authorizedGrantTypes', + label: '授权类型', + component: 'InputTextArea', + required:true, + componentProps: { + rows: 3 + }, + colProps: { + span: 24 + } + }, + { + field: 'scope', + label: '授权范围', + component: 'Input', + required:true, + colProps: { + span: 12 + } + }, + { + field: 'accessTokenValidity', + label: '过期秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'refreshTokenValidity', + label: '刷新秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'webServerRedirectUri', + label: '回调地址', + component: 'Input', + colProps: { + span: 12 + } + }, + { + field: 'additionalInformation', + label: '附加说明', + component: 'InputTextArea', + componentProps: { + rows: 6 + }, + colProps: { + span: 24 + } + } +]; diff --git a/src/views/system/devtools/genDataBaseType/index.vue b/src/views/system/devtools/genDataBaseType/index.vue new file mode 100644 index 0000000..41981c5 --- /dev/null +++ b/src/views/system/devtools/genDataBaseType/index.vue @@ -0,0 +1,143 @@ + + + diff --git a/src/views/system/devtools/genQueryType/ClientModal.vue b/src/views/system/devtools/genQueryType/ClientModal.vue new file mode 100644 index 0000000..ebacf06 --- /dev/null +++ b/src/views/system/devtools/genQueryType/ClientModal.vue @@ -0,0 +1,97 @@ + + diff --git a/src/views/system/devtools/genQueryType/client.data.ts b/src/views/system/devtools/genQueryType/client.data.ts new file mode 100644 index 0000000..39b54c6 --- /dev/null +++ b/src/views/system/devtools/genQueryType/client.data.ts @@ -0,0 +1,154 @@ +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; + +export const columns: BasicColumn[] = [ + { + title: '客户端Id', + dataIndex: 'clientId', + width: 100 + }, + { + title: '客户端密钥', + dataIndex: 'clientSecret', + width: 100 + }, + { + title: '授权类型', + dataIndex: 'authorizedGrantTypes', + width: 130 + }, + { + title: '授权范围', + dataIndex: 'scope', + width: 90 + }, + { + title: '令牌过期秒数', + dataIndex: 'accessTokenValidity', + width: 130 + }, + { + title: '令牌过期秒数', + dataIndex: 'refreshTokenValidity', + width: 130 + }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 100 + } +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'clientId', + label: '客户端编码', + component: 'Input', + componentProps: { + placeholder: '请输入客户端编码', + }, + colProps: { span: 8 }, + }, + { + field: 'dateRange', + label: '创建时间', + component: 'RangePicker', + componentProps: { + style: { width:'100%' }, + valueFormat: 'YYYY-MM-DD', + placeholder: ['开始日期','结束日期'] + }, + colProps: { span: 8 } + } +]; + +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'ID', + component: 'Input', + show: false + }, + { + field: 'clientId', + label: '客户端Id', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'clientSecret', + label: '客户端密钥', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'authorizedGrantTypes', + label: '授权类型', + component: 'InputTextArea', + required:true, + componentProps: { + rows: 3 + }, + colProps: { + span: 24 + } + }, + { + field: 'scope', + label: '授权范围', + component: 'Input', + required:true, + colProps: { + span: 12 + } + }, + { + field: 'accessTokenValidity', + label: '过期秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'refreshTokenValidity', + label: '刷新秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'webServerRedirectUri', + label: '回调地址', + component: 'Input', + colProps: { + span: 12 + } + }, + { + field: 'additionalInformation', + label: '附加说明', + component: 'InputTextArea', + componentProps: { + rows: 6 + }, + colProps: { + span: 24 + } + } +]; diff --git a/src/views/system/devtools/genQueryType/index.vue b/src/views/system/devtools/genQueryType/index.vue new file mode 100644 index 0000000..41981c5 --- /dev/null +++ b/src/views/system/devtools/genQueryType/index.vue @@ -0,0 +1,143 @@ + + + diff --git a/src/views/system/devtools/genShowType/ClientModal.vue b/src/views/system/devtools/genShowType/ClientModal.vue new file mode 100644 index 0000000..ebacf06 --- /dev/null +++ b/src/views/system/devtools/genShowType/ClientModal.vue @@ -0,0 +1,97 @@ + + diff --git a/src/views/system/devtools/genShowType/client.data.ts b/src/views/system/devtools/genShowType/client.data.ts new file mode 100644 index 0000000..39b54c6 --- /dev/null +++ b/src/views/system/devtools/genShowType/client.data.ts @@ -0,0 +1,154 @@ +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; + +export const columns: BasicColumn[] = [ + { + title: '客户端Id', + dataIndex: 'clientId', + width: 100 + }, + { + title: '客户端密钥', + dataIndex: 'clientSecret', + width: 100 + }, + { + title: '授权类型', + dataIndex: 'authorizedGrantTypes', + width: 130 + }, + { + title: '授权范围', + dataIndex: 'scope', + width: 90 + }, + { + title: '令牌过期秒数', + dataIndex: 'accessTokenValidity', + width: 130 + }, + { + title: '令牌过期秒数', + dataIndex: 'refreshTokenValidity', + width: 130 + }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 100 + } +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'clientId', + label: '客户端编码', + component: 'Input', + componentProps: { + placeholder: '请输入客户端编码', + }, + colProps: { span: 8 }, + }, + { + field: 'dateRange', + label: '创建时间', + component: 'RangePicker', + componentProps: { + style: { width:'100%' }, + valueFormat: 'YYYY-MM-DD', + placeholder: ['开始日期','结束日期'] + }, + colProps: { span: 8 } + } +]; + +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'ID', + component: 'Input', + show: false + }, + { + field: 'clientId', + label: '客户端Id', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'clientSecret', + label: '客户端密钥', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'authorizedGrantTypes', + label: '授权类型', + component: 'InputTextArea', + required:true, + componentProps: { + rows: 3 + }, + colProps: { + span: 24 + } + }, + { + field: 'scope', + label: '授权范围', + component: 'Input', + required:true, + colProps: { + span: 12 + } + }, + { + field: 'accessTokenValidity', + label: '过期秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'refreshTokenValidity', + label: '刷新秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'webServerRedirectUri', + label: '回调地址', + component: 'Input', + colProps: { + span: 12 + } + }, + { + field: 'additionalInformation', + label: '附加说明', + component: 'InputTextArea', + componentProps: { + rows: 6 + }, + colProps: { + span: 24 + } + } +]; diff --git a/src/views/system/devtools/genShowType/index.vue b/src/views/system/devtools/genShowType/index.vue new file mode 100644 index 0000000..41981c5 --- /dev/null +++ b/src/views/system/devtools/genShowType/index.vue @@ -0,0 +1,143 @@ + + + diff --git a/src/views/system/devtools/genTable/ClientModal.vue b/src/views/system/devtools/genTable/ClientModal.vue new file mode 100644 index 0000000..ebacf06 --- /dev/null +++ b/src/views/system/devtools/genTable/ClientModal.vue @@ -0,0 +1,97 @@ + + diff --git a/src/views/system/devtools/genTable/client.data.ts b/src/views/system/devtools/genTable/client.data.ts new file mode 100644 index 0000000..39b54c6 --- /dev/null +++ b/src/views/system/devtools/genTable/client.data.ts @@ -0,0 +1,154 @@ +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; + +export const columns: BasicColumn[] = [ + { + title: '客户端Id', + dataIndex: 'clientId', + width: 100 + }, + { + title: '客户端密钥', + dataIndex: 'clientSecret', + width: 100 + }, + { + title: '授权类型', + dataIndex: 'authorizedGrantTypes', + width: 130 + }, + { + title: '授权范围', + dataIndex: 'scope', + width: 90 + }, + { + title: '令牌过期秒数', + dataIndex: 'accessTokenValidity', + width: 130 + }, + { + title: '令牌过期秒数', + dataIndex: 'refreshTokenValidity', + width: 130 + }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 100 + } +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'clientId', + label: '客户端编码', + component: 'Input', + componentProps: { + placeholder: '请输入客户端编码', + }, + colProps: { span: 8 }, + }, + { + field: 'dateRange', + label: '创建时间', + component: 'RangePicker', + componentProps: { + style: { width:'100%' }, + valueFormat: 'YYYY-MM-DD', + placeholder: ['开始日期','结束日期'] + }, + colProps: { span: 8 } + } +]; + +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'ID', + component: 'Input', + show: false + }, + { + field: 'clientId', + label: '客户端Id', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'clientSecret', + label: '客户端密钥', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'authorizedGrantTypes', + label: '授权类型', + component: 'InputTextArea', + required:true, + componentProps: { + rows: 3 + }, + colProps: { + span: 24 + } + }, + { + field: 'scope', + label: '授权范围', + component: 'Input', + required:true, + colProps: { + span: 12 + } + }, + { + field: 'accessTokenValidity', + label: '过期秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'refreshTokenValidity', + label: '刷新秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'webServerRedirectUri', + label: '回调地址', + component: 'Input', + colProps: { + span: 12 + } + }, + { + field: 'additionalInformation', + label: '附加说明', + component: 'InputTextArea', + componentProps: { + rows: 6 + }, + colProps: { + span: 24 + } + } +]; diff --git a/src/views/system/devtools/genTable/index.vue b/src/views/system/devtools/genTable/index.vue new file mode 100644 index 0000000..41981c5 --- /dev/null +++ b/src/views/system/devtools/genTable/index.vue @@ -0,0 +1,143 @@ + + + diff --git a/src/views/system/devtools/genValidateType/ClientModal.vue b/src/views/system/devtools/genValidateType/ClientModal.vue new file mode 100644 index 0000000..ebacf06 --- /dev/null +++ b/src/views/system/devtools/genValidateType/ClientModal.vue @@ -0,0 +1,97 @@ + + diff --git a/src/views/system/devtools/genValidateType/client.data.ts b/src/views/system/devtools/genValidateType/client.data.ts new file mode 100644 index 0000000..39b54c6 --- /dev/null +++ b/src/views/system/devtools/genValidateType/client.data.ts @@ -0,0 +1,154 @@ +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; + +export const columns: BasicColumn[] = [ + { + title: '客户端Id', + dataIndex: 'clientId', + width: 100 + }, + { + title: '客户端密钥', + dataIndex: 'clientSecret', + width: 100 + }, + { + title: '授权类型', + dataIndex: 'authorizedGrantTypes', + width: 130 + }, + { + title: '授权范围', + dataIndex: 'scope', + width: 90 + }, + { + title: '令牌过期秒数', + dataIndex: 'accessTokenValidity', + width: 130 + }, + { + title: '令牌过期秒数', + dataIndex: 'refreshTokenValidity', + width: 130 + }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 100 + } +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'clientId', + label: '客户端编码', + component: 'Input', + componentProps: { + placeholder: '请输入客户端编码', + }, + colProps: { span: 8 }, + }, + { + field: 'dateRange', + label: '创建时间', + component: 'RangePicker', + componentProps: { + style: { width:'100%' }, + valueFormat: 'YYYY-MM-DD', + placeholder: ['开始日期','结束日期'] + }, + colProps: { span: 8 } + } +]; + +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'ID', + component: 'Input', + show: false + }, + { + field: 'clientId', + label: '客户端Id', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'clientSecret', + label: '客户端密钥', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'authorizedGrantTypes', + label: '授权类型', + component: 'InputTextArea', + required:true, + componentProps: { + rows: 3 + }, + colProps: { + span: 24 + } + }, + { + field: 'scope', + label: '授权范围', + component: 'Input', + required:true, + colProps: { + span: 12 + } + }, + { + field: 'accessTokenValidity', + label: '过期秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'refreshTokenValidity', + label: '刷新秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'webServerRedirectUri', + label: '回调地址', + component: 'Input', + colProps: { + span: 12 + } + }, + { + field: 'additionalInformation', + label: '附加说明', + component: 'InputTextArea', + componentProps: { + rows: 6 + }, + colProps: { + span: 24 + } + } +]; diff --git a/src/views/system/devtools/genValidateType/index.vue b/src/views/system/devtools/genValidateType/index.vue new file mode 100644 index 0000000..41981c5 --- /dev/null +++ b/src/views/system/devtools/genValidateType/index.vue @@ -0,0 +1,143 @@ + + + diff --git a/src/views/system/devtools/template/ClientModal.vue b/src/views/system/devtools/template/ClientModal.vue new file mode 100644 index 0000000..ebacf06 --- /dev/null +++ b/src/views/system/devtools/template/ClientModal.vue @@ -0,0 +1,97 @@ + + diff --git a/src/views/system/devtools/template/client.data.ts b/src/views/system/devtools/template/client.data.ts new file mode 100644 index 0000000..39b54c6 --- /dev/null +++ b/src/views/system/devtools/template/client.data.ts @@ -0,0 +1,154 @@ +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; + +export const columns: BasicColumn[] = [ + { + title: '客户端Id', + dataIndex: 'clientId', + width: 100 + }, + { + title: '客户端密钥', + dataIndex: 'clientSecret', + width: 100 + }, + { + title: '授权类型', + dataIndex: 'authorizedGrantTypes', + width: 130 + }, + { + title: '授权范围', + dataIndex: 'scope', + width: 90 + }, + { + title: '令牌过期秒数', + dataIndex: 'accessTokenValidity', + width: 130 + }, + { + title: '令牌过期秒数', + dataIndex: 'refreshTokenValidity', + width: 130 + }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 100 + } +]; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'clientId', + label: '客户端编码', + component: 'Input', + componentProps: { + placeholder: '请输入客户端编码', + }, + colProps: { span: 8 }, + }, + { + field: 'dateRange', + label: '创建时间', + component: 'RangePicker', + componentProps: { + style: { width:'100%' }, + valueFormat: 'YYYY-MM-DD', + placeholder: ['开始日期','结束日期'] + }, + colProps: { span: 8 } + } +]; + +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'ID', + component: 'Input', + show: false + }, + { + field: 'clientId', + label: '客户端Id', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'clientSecret', + label: '客户端密钥', + component: 'Input', + required: true, + colProps: { + span: 12 + } + }, + { + field: 'authorizedGrantTypes', + label: '授权类型', + component: 'InputTextArea', + required:true, + componentProps: { + rows: 3 + }, + colProps: { + span: 24 + } + }, + { + field: 'scope', + label: '授权范围', + component: 'Input', + required:true, + colProps: { + span: 12 + } + }, + { + field: 'accessTokenValidity', + label: '过期秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'refreshTokenValidity', + label: '刷新秒数', + component: 'InputNumber', + componentProps: { + style: { width:'100%' }, + min: 0 + }, + colProps: { + span: 12 + } + }, + { + field: 'webServerRedirectUri', + label: '回调地址', + component: 'Input', + colProps: { + span: 12 + } + }, + { + field: 'additionalInformation', + label: '附加说明', + component: 'InputTextArea', + componentProps: { + rows: 6 + }, + colProps: { + span: 24 + } + } +]; diff --git a/src/views/system/devtools/template/index.vue b/src/views/system/devtools/template/index.vue new file mode 100644 index 0000000..41981c5 --- /dev/null +++ b/src/views/system/devtools/template/index.vue @@ -0,0 +1,143 @@ + + +