You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.1 KiB
TypeScript

import { FormSchema } from '@/components/Table';
export const searchFormSchema: FormSchema[] = [
{
field: 'key',
label: '关键字',
component: 'Input',
colProps: { span: 8 },
},
];
export const columns = [
{
title: '专题名称',
dataIndex: 'topicName',
},
{
title: '线索类型',
dataIndex: 'caseTypes',
},
{
title: '角色',
dataIndex: 'roles',
},
];
export const tableSetting = {
title: '专题列表',
columns,
showIndexColumn: false,
showTableSetting: true,
rowSelection: {
type: 'radio',
},
useSearchForm: true,
formConfig: {
labelWidth: 120,
schemas: searchFormSchema,
},
handleSearchInfoFn(info) {
return info;
},
canResize: true,
};
export const emptyTopicItem = {
topicName: '',
caseTypes: [],
roles: [],
};
export const caseTypesColumns = [
{
title: '线索名称',
dataIndex: 'itemName',
},
{
title: '状态',
dataIndex: 'enabledMark',
},
];
export const rolesColumns = [
{
title: '角色名称',
dataIndex: 'name',
},
{
title: '状态',
dataIndex: 'status',
},
];