You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
976 B
51 lines
976 B
1 year ago
|
import type { BasicColumn, FormSchema } from '@/components/Table'
|
||
|
import { getAllSubscription } from '@/api/subscription/list'
|
||
|
|
||
|
export const columns: BasicColumn[] = [
|
||
|
{
|
||
|
title: '消费组名称',
|
||
|
dataIndex: 'consumerName',
|
||
|
},
|
||
|
{
|
||
|
title: '消费组 Token',
|
||
|
dataIndex: 'consumerToken',
|
||
|
},
|
||
|
{
|
||
|
title: '创建时间',
|
||
|
dataIndex: 'createTime',
|
||
|
},
|
||
|
]
|
||
|
|
||
|
export const searchFormSchema: FormSchema[] = [
|
||
|
{
|
||
|
field: 'consumerName',
|
||
|
label: '消费组名称',
|
||
|
component: 'Input',
|
||
|
colProps: {
|
||
|
span: 6,
|
||
|
},
|
||
|
},
|
||
|
]
|
||
|
|
||
|
export const formSchema: FormSchema[] = [
|
||
|
{
|
||
|
field: 'consumerName',
|
||
|
fields: ['id'],
|
||
|
label: '消费组名称',
|
||
|
required: true,
|
||
|
component: 'Input',
|
||
|
},
|
||
|
{
|
||
|
field: 'subscribeIds',
|
||
|
label: '订阅',
|
||
|
required: true,
|
||
|
component: 'ApiSelect',
|
||
|
componentProps: {
|
||
|
api: getAllSubscription,
|
||
|
mode: 'multiple',
|
||
|
valueField: 'id',
|
||
|
labelField: 'productName',
|
||
|
},
|
||
|
},
|
||
|
]
|