import type { TableColumnData } from '@arco-design/web-vue/es/table/interface'

export const columns: TableColumnData[] = [
  {
    title: '序号',
    dataIndex: 'index',
    slotName: 'index',
    width: 80,
  },
  {
    title: '策略名称',
    dataIndex: 'name',
    slotName: 'name',
    width: 200,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '策略描述',
    dataIndex: 'description',
    width: 250,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '启用状态',
    dataIndex: 'enabled',
    slotName: 'enabled',
    width: 100,
  },
  {
    title: '优先级',
    dataIndex: 'priority',
    width: 80,
  },
  {
    title: '规则数',
    dataIndex: 'rule_count',
    slotName: 'rule_count',
    width: 80,
  },
  {
    title: '通知渠道数',
    dataIndex: 'channel_count',
    slotName: 'channel_count',
    width: 100,
  },
  {
    title: '抑制规则数',
    dataIndex: 'suppression_rule_count',
    slotName: 'suppression_rule_count',
    width: 100,
  },
  {
    title: '自动建单',
    dataIndex: 'auto_create_ticket',
    slotName: 'auto_create_ticket',
    width: 100,
  },
  {
    title: '创建时间',
    dataIndex: 'created_at',
    slotName: 'created_at',
    width: 180,
  },
  {
    title: '最后修改',
    dataIndex: 'updated_at',
    slotName: 'updated_at',
    width: 180,
  },
  {
    title: '操作',
    dataIndex: 'actions',
    slotName: 'actions',
    fixed: 'right',
    width: 300,
  },
]
