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',
  },
];
