/**
 * 车辆信息表格配置
 */
import type { TableColumnProps } from '@/types/basic-table';

export const ACCIDENT_LIST_TABLE_MAX_HEIGHT_DEFAULT = 'calc(70vh - 80px)';
export const ACCIDENT_LIST_TABLE_MAX_HEIGHT_PERMISSION = 'calc(70vh - 130px)';

// 基础表格样式配置
const TABLE_OPTIONS = {
  emptyText: '暂无数据',
  loading: true,
};

// 车辆信息表格样式配置
export const ACCIDENT_LIST_TABLE_OPTIONS = {
  ...TABLE_OPTIONS,
};

// 应急处置表格列配置
export const ACCIDENT_LIST_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '',
    width: '55px',
    type: 'selection',
  },
  {
    label: '序号',
    prop: 'index',
    width: '80px',
    type: 'index',
    align: 'center',
  },
  {
    label: '事故地点',
    prop: 'accidentLocation',
    align: 'left',
    minWidth: '180px',
  },
  {
    label: '事故时间',
    prop: 'accidentTime',
    align: 'left',
    width: '200px',
  },
  {
    label: '事故描述',
    prop: 'accidentDescription',
    align: 'left',
    minWidth: '280px',
  },
  {
    label: '操作',
    prop: 'action',
    align: 'left',
    slot: 'action',
    fixed: 'right',
    width: '180px',
  },
];
