7 changed files with 173 additions and 214 deletions
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
import type { GenShowType, GenShowTypeParams, GenShowTypeResult } from '/@/api/platform/system/entity/genShowType'; |
||||
import { defHttp } from '/@/utils/http/axios'; |
||||
|
||||
enum Api { |
||||
list = '/system_proxy/system/devtools/genShowType/list', |
||||
add = '/system_proxy/system/devtools/genShowType/save', |
||||
get = '/system_proxy/system/devtools/genShowType', |
||||
edit = '/system_proxy/system/devtools/genShowType/update', |
||||
del = '/system_proxy/system/devtools/genShowType/remove' |
||||
} |
||||
|
||||
export const listGenShowType = (params?: Partial<GenShowTypeParams>) => defHttp.get<GenShowTypeResult>({ url: Api.list, params }, { isReturnResultResponse: true }); |
||||
|
||||
export const addGenShowType = (params: Partial<GenShowType>) => defHttp.post({ url: Api.add, data: params }); |
||||
|
||||
export const editGenShowType = (params: Partial<GenShowType>) => defHttp.put({ url: Api.edit, data: params }); |
||||
|
||||
export const getGenShowType = (id: string) => defHttp.get<GenShowType>({ url: `${Api.get}/${id}` }); |
||||
|
||||
export const delGenShowType = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); |
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
import type { R } from '/#/axios'; |
||||
import type { Page } from '/@/api/common/data/entity'; |
||||
import type { BaseEntity } from '/@/api/common/base/entity'; |
||||
|
||||
export type GenShowTypeParams = Page & GenShowType; |
||||
|
||||
export interface GenShowType extends BaseEntity { |
||||
id: string; |
||||
label: string; |
||||
value: string; |
||||
sort: number; |
||||
component: string; |
||||
importpath: string; |
||||
[key: string]: any; |
||||
} |
||||
|
||||
export type GenShowTypeResult = R<GenShowType[]>; |
@ -1,154 +0,0 @@
@@ -1,154 +0,0 @@
|
||||
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 |
||||
} |
||||
} |
||||
]; |
@ -0,0 +1,92 @@
@@ -0,0 +1,92 @@
|
||||
import { BasicColumn } from '/@/components/Table'; |
||||
import { FormSchema } from '/@/components/Table'; |
||||
|
||||
export const columns: BasicColumn[] = [ |
||||
{ |
||||
title: '标签', |
||||
dataIndex: 'label', |
||||
width: 100 |
||||
}, |
||||
{ |
||||
title: '值', |
||||
dataIndex: 'value', |
||||
width: 100 |
||||
}, |
||||
{ |
||||
title: 'ui组件', |
||||
dataIndex: 'component', |
||||
width: 130 |
||||
}, |
||||
{ |
||||
title: '引入路径', |
||||
dataIndex: 'importpath', |
||||
width: 90 |
||||
}, |
||||
{ |
||||
title: '排序', |
||||
dataIndex: 'sort', |
||||
width: 130 |
||||
} |
||||
]; |
||||
|
||||
export const searchFormSchema: FormSchema[] = [ |
||||
{ |
||||
field: 'label', |
||||
label: '标签', |
||||
component: 'Input', |
||||
componentProps: { |
||||
placeholder: '请输入标签', |
||||
}, |
||||
colProps: { span: 6 } |
||||
}, |
||||
{ |
||||
field: 'value', |
||||
label: '值', |
||||
component: 'Input', |
||||
componentProps: { |
||||
placeholder: '请输入值', |
||||
}, |
||||
colProps: { span: 6 } |
||||
} |
||||
]; |
||||
|
||||
export const formSchema: FormSchema[] = [ |
||||
{ |
||||
field: 'id', |
||||
label: 'ID', |
||||
component: 'Input', |
||||
show: false |
||||
}, |
||||
{ |
||||
field: 'label', |
||||
label: '标签', |
||||
component: 'Input', |
||||
required: true |
||||
}, |
||||
{ |
||||
field: 'value', |
||||
label: '值', |
||||
component: 'Input', |
||||
required: true |
||||
}, |
||||
{ |
||||
field: 'component', |
||||
label: 'UI组件', |
||||
component: 'Input' |
||||
}, |
||||
{ |
||||
field: 'importpath', |
||||
label: '引入路径', |
||||
component: 'Input' |
||||
}, |
||||
{ |
||||
field: 'sort', |
||||
label: '排序', |
||||
component: 'InputNumber', |
||||
componentProps: { |
||||
style: { width:'100%' }, |
||||
min: 0 |
||||
}, |
||||
required: true |
||||
} |
||||
]; |
Loading…
Reference in new issue