/**
 * 治安重点部位表格配置
 */
import type { TableColumnProps } from '@/types/basic-table';

export const CONFIDENTIALITY_POSITION_LIST_TABLE_MAX_HEIGHT_DEFAULT = 'calc(70vh - 30px)';
export const CONFIDENTIALITY_POSITION_LIST_TABLE_MAX_HEIGHT_PERMISSION = 'calc(70vh - 80px)';

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

// 应急处置表格样式配置
export const CONFIDENTIALITY_POSITION_LIST_TABLE_OPTIONS = {
  ...TABLE_OPTIONS,
};

// 应急处置表格列配置
export const CONFIDENTIALITY_POSITION_LIST_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '序号',
    prop: 'index',
    width: '80px',
    type: 'index',
    align: 'center',
  },
  {
    label: '要害部位名称',
    prop: 'groupName',
    // align: 'center',
    minWidth: '120px',
  },
  {
    label: '关联相机',
    prop: 'cameraName',
    slot: 'cameraName',
    // align: 'center',
    minWidth: '180px',
  },
  {
    label: '创建时间',
    prop: 'createdAt',
    // align: 'center',
    width: '200px',
  },
  {
    prop: 'action',
    label: '操作',
    // align: 'center',
    slot: 'action',
    fixed: 'right',
    width: '230px',
  },
];
