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

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

export const DRILL_SIGN_LIST_TABLE_OPTIONS = {
  ...BASIC_TABLE_OPTIONS,
  maxHeight: 'calc(70vh - 30px)',
};

export const DRILI_SIGN_LIST_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '序号',
    type: 'index',
    width: '80px',
    align: 'center'
  },
  {
    label: '会签类型',
    slot: 'signType',
    minWidth: '120px',
  },
  {
    label: '演练规模',
    slot: 'drillScope',
    minWidth: '120px',
  },
  {
    label: '演练内容',
    prop: 'drillContent',
    minWidth: '120px',
  },
  {
    label: '演练时间',
    prop: 'drillTime',
    width: '200px',
  },
  {
    label: '演练地点',
    prop: 'drillLocation',
    minWidth: '120px',
  },
  {
    label: '演练负责人',
    prop: 'personInChargeName',
    minWidth: '120px',
  },
  {
    label: '提交人',
    prop: 'createdByName',
    minWidth: '120px',
  },
  {
    label: '确认状态',
    slot: 'confirmStatus',
    minWidth: '120px'
  },
  {
    label: '操作',
    slot: 'action',
    width: '80px',
    align: 'center',
    fixed: 'right'
  }
];
