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: 'deviceName',
    align: 'left',
    minWidth: '160px',
  },
  {
    label: '使用单位',
    prop: 'useUnit',
    align: 'left',
    minWidth: '160px',
  },
  {
    label: '设备类别',
    prop: 'categoryName',
    align: 'left',
    minWidth: '140px',
  },
  {
    label: '设备种类',
    prop: 'typeName',
    align: 'left',
    minWidth: '140px',
  },
  {
    label: '安全地点',
    prop: 'safeLocation',
    align: 'left',
    minWidth: '180px',
  },
  {
    label: '使用部门',
    prop: 'isUseDepartmentName',
    align: 'left',
    minWidth: '140px',
  },
  {
    label: '责任部门',
    prop: 'responsibilityDeptName',
    align: 'left',
    minWidth: '140px',
  },
  {
    label: '状态',
    prop: 'deviceStatus',
    slot: 'deviceStatus',
    align: 'center',
    minWidth: '100px',
  },
  {
    label: '操作',
    prop: 'action',
    slot: 'action',
    fixed: 'right',
    width: '220px',
    align: 'left',
  },
];

