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

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

export const DRILL_PLAN_LIST_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '序号',
    align: 'center',
    width: '80px',
    type: 'index',
  },
  {
    prop: 'drillScope',
    label: '演练规模',
    slot: 'drillScope',
    align: 'center',
    minWidth: '120px',
  },
  {
    prop: 'drillContent',
    label: '演练内容',
    align: 'center',
    minWidth: '120px',
  },
  {
    prop: 'dueCompleteTime',
    label: '计划完成日期',
    align: 'center',
    width: '200px',
  },

  {
    prop: 'responsibleDeptNameList',
    label: '责任部门',
    align: 'center',
    minWidth: '120px',
  },
  {
    prop: 'coordinateDeptNameList',
    label: '配合部门',
    align: 'center',
    minWidth: '120px',
  },
  {
    prop: 'status',
    label: '状态',
    slot: 'status',
    align: 'center',
    minWidth: '120px',
  },
  {
    prop: 'drillTime',
    label: '演练时间',
    align: 'center',
    width: '200px',
  },

  {
    prop: 'action',
    label: '操作',
    slot: 'action',
    fixed: 'right',
    width: '200px',
    align: 'center',
  },
];

export const DRILL_PLAN_ACTIVITIES_TABLE_OPTIONS = {
  emptyText: '暂无数据',
  loading: true,
  maxHeight: 'calc(50vh - 100px)',
};

export const DRILL_PLAN_ACTIVITIES_TABLE_COLUMNS: TableColumnProps[] = [
  {
    prop: 'id',
    label: '序号',
    align: 'center',
  },
  {
    prop: 'drillDeptName',
    label: '部门',
    align: 'center',
  },
  {
    prop: 'drillScriptStatus',
    label: '脚本确认状态',
    slot: 'drillScriptStatus',
    align: 'center',
  },
  {
    prop: 'planToParticipateCount',
    label: '计划参与人数',
    align: 'center',
  },
  {
    prop: 'actualSignCount',
    label: '实际签到人数',
    align: 'center',
  },
];
