这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
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.
 
 
 
 
 
 

88 lines
2.4 KiB

import { useLocalization } from '/@/hooks/abp/useLocalization';
import { FormProps } from '/@/components/Form';
import { GetListAsyncByInput as getTenants } from '/@/api/saas/tenant';
import { getList as getSubscriptions } from '/@/api/webhooks/subscriptions';
import { httpStatusOptions } from '../../typing';
const { L } = useLocalization(['WebhooksManagement', 'AbpUi']);
export function getSearchFormSchemas(): Partial<FormProps> {
return {
labelWidth: 100,
fieldMapToTime: [
['creationTime', ['beginCreationTime', 'endCreationTime'], ['YYYY-MM-DDT00:00:00', 'YYYY-MM-DDT23:59:59']]
],
schemas: [
{
field: 'tenantId',
component: 'ApiSelect',
label: L('DisplayName:TenantId'),
colProps: { span: 6 },
componentProps: {
api: getTenants,
params: {
skipCount: 0,
maxResultCount: 100,
},
resultField: 'items',
labelField: 'name',
valueField: 'id',
},
},
{
field: 'subscriptionId',
component: 'ApiSelect',
label: L('DisplayName:Subscription'),
colProps: { span: 12 },
componentProps: {
api: getSubscriptions,
params: {
skipCount: 0,
maxResultCount: 100,
},
resultField: 'items',
labelField: 'webhookUri',
valueField: 'id',
}
},
{
field: 'state',
component: 'Select',
label: L('DisplayName:State'),
colProps: { span: 6 },
componentProps: {
options: [
{ label: L('ResponseState:Successed'), value: true, },
{ label: L('ResponseState:Failed'), value: false, },
],
},
},
{
field: 'responseStatusCode',
component: 'Select',
label: L('DisplayName:ResponseStatusCode'),
colProps: { span: 6 },
componentProps: {
options: httpStatusOptions,
},
},
{
field: 'creationTime',
component: 'RangePicker',
label: L('DisplayName:BeginCreationTime'),
colProps: { span: 6 },
componentProps: {
style: {
width: '100%',
},
},
},
{
field: 'filter',
component: 'Input',
label: L('Search'),
colProps: { span: 12 },
},
],
};
}