import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '监控主体',
    align: 'left',
    dataIndex: 'name',
    width: 280,
  },
  {
    title: '风险级别',
    align: 'left',
    dataIndex: 'risk_level',
    width: 100,
  },
  {
    title: '动态类型',
    align: 'left',
    dataIndex: 'news_type',
    width: 100,
  },
  {
    title: '动态内容',
    align: 'left',
    dataIndex: 'news',
  },
  {
    title: '更新时间',
    align: 'left',
    dataIndex: 'time',
    width: 100,
  },
];
// 查询数据
export const searchFormSchema: FormSchema[] = [
  {
    label: '风险级别',
    field: 'risk_level',
    component: 'Input',
  },
  {
    label: '风险维度',
    field: 'risk_dimension',
    component: 'Input',
  },
];

export const formSchema: FormSchema[] = [
  {
    label: '监控主体',
    field: 'name',
    component: 'Input',
    colProps: { lg: 12 },
    // itemProps: { labelCol: { xs: { span: 24 }, sm: { span: 6 } }, wrapperCol: { xs: { span: 24 }, sm: { span: 18 } } },
  },
  {
    label: '风险级别',
    field: 'risk_level',
    component: 'Input',
    colProps: { lg: 12 },
    // itemProps: { labelCol: { xs: { span: 24 }, sm: { span: 6 } }, wrapperCol: { xs: { span: 24 }, sm: { span: 18 } } },
  },
  {
    label: '动态类型',
    field: 'news_type',
    component: 'Input',
    colProps: { lg: 12 },
    // itemProps: { labelCol: { xs: { span: 24 }, sm: { span: 6 } }, wrapperCol: { xs: { span: 24 }, sm: { span: 18 } } },
  },

  {
    label: '更新时间',
    field: 'time',
    component: 'Input',
    colProps: { lg: 12 },
    // itemProps: { labelCol: { xs: { span: 24 }, sm: { span: 6 } }, wrapperCol: { xs: { span: 24 }, sm: { span: 18 } } },
  },
  {
    label: '动态内容',
    field: 'news',
    component: 'InputTextArea',
    colProps: { lg: 24 },
    // itemProps: { labelCol: { xs: { span: 24 }, sm: { span: 6 } }, wrapperCol: { xs: { span: 24 }, sm: { span: 18 } } },
  },
];
