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

export const columns: TableColumnData[] = [
  {
    title: '模板名称',
    dataIndex: 'template_name',
    width: 180,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '模板编码',
    dataIndex: 'template_code',
    width: 160,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '状态',
    dataIndex: 'status',
    slotName: 'status',
    width: 100,
  },
  {
    title: '默认标题',
    dataIndex: 'title',
    width: 180,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '类型',
    dataIndex: 'type',
    slotName: 'type',
    width: 100,
  },
  {
    title: '优先级',
    dataIndex: 'priority',
    slotName: 'priority',
    width: 100,
  },
  {
    title: '默认分类',
    dataIndex: 'category_id',
    width: 100,
  },
  {
    title: '默认处理人',
    dataIndex: 'assignee_id',
    width: 100,
  },
  {
    title: '触发类型',
    dataIndex: 'trigger_type',
    slotName: 'trigger_type',
    width: 100,
  },
  {
    title: '定时表达式',
    dataIndex: 'cron_expression',
    width: 160,
    ellipsis: true,
    tooltip: true,
  },
  {
    title: '自动分配',
    dataIndex: 'auto_assign',
    slotName: 'auto_assign',
    width: 100,
  },
  {
    title: '自动接单',
    dataIndex: 'auto_accept',
    slotName: 'auto_accept',
    width: 100,
  },
  {
    title: 'SLA(分钟)',
    dataIndex: 'sla_duration',
    width: 100,
  },
  {
    title: '使用次数',
    dataIndex: 'usage_count',
    width: 100,
  },
  {
    title: '创建人',
    dataIndex: 'creator_name',
    width: 120,
    ellipsis: true,
  },
  {
    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,
  },
]
