import type { TableColumnProps } from '@/types/basic-table';

// 基础表格样式配置
export const TABLE_OPTIONS = {
  emptyText: '暂无数据',
  loading: true,
  maxHeight: 'calc(70vh - 150px)',
};

export const VIOLATION_ACT_TABLE_COLUMNS: TableColumnProps[] = [
  {
    prop: 'select',
    label: '',
    type: 'selection',
    align: 'center',
    width: '80px',
  },
  {
    label: '序号',
    align: 'center',
    width: '80px',
    type: 'index',
  },
  {
    label: '车牌号',
    prop: 'carNumber',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '车主',
    prop: 'violateName',
    slot: 'violateName',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '所属部门',
    prop: 'deptName',
    slot: 'deptName',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '违规类型',
    prop: 'violateType',
    slot: 'violateType',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '车速',
    prop: 'speed',
    slot: 'speed',
    align: 'center',
    minWidth: '120px',
  },

  {
    label: '抓拍图片',
    prop: 'capturePhotos',
    slot: 'capturePhotos',
    align: 'center',
    minWidth: '180px',
  },
  {
    label: '违规地点',
    prop: 'violateLocation',
    slot: 'violateLocation',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '时间',
    prop: 'captureTime',
    align: 'left',
    minWidth: '200px',
  },
  {
    label: '数据来源',
    prop: 'createSource',
    slot: 'createSource',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '通知状态',
    prop: 'isNotice',
    slot: 'isNotice',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '操作',
    prop: 'action',
    slot: 'action',
    fixed: 'right',
    width: '180px',
    align: 'left',
  },
];

export const VIOLATION_ACT_TABLE_COLUMNS_CHECKONLY: TableColumnProps[] = [
  {
    label: '序号',
    align: 'center',
    width: '80px',
    type: 'index',
  },
  {
    label: '车牌号',
    prop: 'carNumber',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '车主',
    prop: 'violateName',
    slot: 'violateName',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '所属部门',
    prop: 'deptName',
    slot: 'deptName',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '违规类型',
    prop: 'violateType',
    slot: 'violateType',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '车速',
    prop: 'speed',
    slot: 'speed',
    align: 'center',
    minWidth: '120px',
  },

  {
    label: '抓拍图片',
    prop: 'capturePhotos',
    slot: 'capturePhotos',
    align: 'center',
    minWidth: '180px',
  },
  {
    label: '违规地点',
    prop: 'violateLocation',
    slot: 'violateLocation',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '时间',
    prop: 'captureTime',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '数据来源',
    prop: 'createSource',
    slot: 'createSource',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '通知状态',
    prop: 'isNotice',
    slot: 'isNotice',
    align: 'center',
    minWidth: '120px',
  },
];

export const VIOLATION_NOTICE_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '序号',
    align: 'center',
    width: '80px',
    type: 'index',
  },
  {
    label: '车牌号',
    prop: 'carNumber',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '车主',
    prop: 'violateName',
    slot: 'violateName',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '所属部门',
    prop: 'deptName',
    slot: 'deptName',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '违规类型',
    prop: 'violateType',
    slot: 'violateType',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '车速',
    prop: 'speed',
    slot: 'speed',
    align: 'center',
    minWidth: '120px',
  },

  {
    label: '抓拍图片',
    prop: 'capturePhotos',
    slot: 'capturePhotos',
    align: 'center',
    minWidth: '180px',
  },
  {
    label: '违规地点',
    prop: 'violateLocation',
    slot: 'violateLocation',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '时间',
    prop: 'captureTime',
    align: 'left',
    minWidth: '200px',
  },
  {
    label: '数据来源',
    prop: 'createSource',
    slot: 'createSource',
    align: 'center',
    minWidth: '120px',
  },
];

export const VIOLATION_NOTICE_TABLE_COLUMNS_CHECKONLY: TableColumnProps[] = [
  {
    label: '序号',
    align: 'center',
    width: '80px',
    type: 'index',
  },
  {
    label: '车牌号',
    prop: 'carNumber',
    align: 'left',
    minWidth: '120px',
  },

  {
    label: '违规类型',
    prop: 'violateType',
    slot: 'violateType',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '车速',
    prop: 'speed',
    slot: 'speed',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '抓拍图片',
    prop: 'capturePhotos',
    slot: 'capturePhotos',
    align: 'center',
    minWidth: '180px',
  },
  {
    label: '违规地点',
    prop: 'violateLocation',
    slot: 'violateLocation',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '时间',
    prop: 'captureTime',
    align: 'left',
    minWidth: '200px',
  },
];
