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',
    width: 180,
  },
  {
    title: '数据中心编码',
    dataIndex: 'code',
    width: 150,
  },
  {
    title: '简称',
    dataIndex: 'short_name',
    width: 120,
  },
  {
    title: '状态',
    dataIndex: 'status',
    slotName: 'status',
    width: 120,
  },
  {
    title: '是否启用',
    dataIndex: 'enabled',
    slotName: 'enabled',
    width: 100,
  },
  {
    title: '所属省份',
    dataIndex: 'province',
    slotName: 'province',
    width: 120,
  },
  {
    title: '所属城市',
    dataIndex: 'city',
    slotName: 'city',
    width: 120,
  },
  {
    title: '联系人',
    dataIndex: 'contact_person',
    width: 120,
  },
  {
    title: '联系电话',
    dataIndex: 'contact_phone',
    width: 130,
  },
  {
    title: '详细地址',
    dataIndex: 'address',
    ellipsis: true,
    tooltip: true,
    width: 200,
  },
  {
    title: '总面积（㎡）',
    dataIndex: 'total_area',
    width: 120,
  },
  {
    title: 'IT区域面积（㎡）',
    dataIndex: 'it_area',
    width: 140,
  },
  {
    title: '总电力（KW）',
    dataIndex: 'total_power',
    width: 120,
  },
  {
    title: '已用电力（KW）',
    dataIndex: 'used_power',
    width: 120,
  },
  {
    title: '可容纳机柜数',
    dataIndex: 'max_rack_capacity',
    width: 120,
  },
  {
    title: 'ISO27001',
    dataIndex: 'iso27001',
    slotName: 'iso27001',
    width: 100,
  },
  {
    title: 'ISO9001',
    dataIndex: 'iso9001',
    slotName: 'iso9001',
    width: 100,
  },
  {
    title: '楼层数',
    dataIndex: 'floor_count',
    width: 100,
  },
  {
    title: '机柜数',
    dataIndex: 'rack_count',
    width: 100,
  },
  {
    title: '描述',
    dataIndex: 'description',
    ellipsis: true,
    tooltip: true,
    width: 200,
  },
  {
    title: '备注',
    dataIndex: 'remarks',
    ellipsis: true,
    tooltip: true,
    width: 200,
  },
  {
    title: '操作',
    dataIndex: 'actions',
    slotName: 'actions',
    width: 240,
    fixed: 'right' as const,
  },
]
