/*
 * @Author: liuJie
 * @Date: 2026-02-26 13:57:24
 * @LastEditors: liuJie
 * @LastEditTime: 2026-03-12 15:16:19
 * @Describe: file describe
 */
import type { TableColumnProps } from '@/types/basic-table';

// 特种设备设施管理 - 表格基础配置
export const TABLE_OPTIONS = {
  emptyText: '暂无数据',
  loading: true,
  maxHeight: 'calc(70vh - 150px)',
};

export const SPECIAL_EQUIPMENT_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '序号',
    type: 'index',
    align: 'center',
    width: '80px',
  },
  {
    label: '设备编号',
    prop: 'deviceNo',
    align: 'left',
    minWidth: '160px',
  },
    {
    label: '设备名称',
    prop: 'deviceName',
    align: 'left',
    minWidth: '160px',
  },
  {
    label: '设备类型',
    prop: 'deviceType',
    slot: 'deviceType',
    align: 'left',
    minWidth: '160px',
  },
  {
    label: '所属部门',
    prop: 'deptName',
    align: 'left',
    minWidth: '140px',
  },
  {
    label: '所属区域',
    prop: 'regionName',
    align: 'left',
    minWidth: '140px',
  },
  {
    label: '告警名称',
    prop: 'alarmTitle',
    align: 'left',
    minWidth: '180px',
  },
  {
    label: '告警内容',
    prop: 'alarmContent',
    align: 'left',
    minWidth: '140px',
  },
  {
    label: '告警类型',
    prop: 'alarmType',
    slot: 'alarmType',
    align: 'left',
    minWidth: '140px',
  },
  {
    label: '告警时刻',
    prop: 'firstAlarmTime',
    align: 'center',
    minWidth: '140px',
  },
  {
    label: '告警次数',
    prop: 'alarmCount',
    align: 'center',
    minWidth: '140px',
  },
  {
    label: '告警来源',
    prop: 'location',
    align: 'center',
    minWidth: '140px',
  },
  {
    label: '操作',
    prop: 'action',
    slot: 'action',
    fixed: 'right',
    width: '220px',
    align: 'left',
  },
];

