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

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

export const EVALUATION_SYSTEM_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '考核表名称',
    // prop: 'evaluationTableName',
    slot: 'evaluationTableName',
    align: 'left',
    minWidth: '150px',
    showOverflowTooltip: true,
  },
  {
    label: '状态',
    prop: 'status',
    slot: 'status',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '下发部门',
    prop: 'issueDepartment',
    align: 'left',
    minWidth: '120px',
  },
  {
    label: '下发数',
    prop: 'issueCount',
    align: 'center',
    minWidth: '100px',
  },
  {
    label: '反馈数',
    prop: 'feedbackCount',
    align: 'center',
    minWidth: '100px',
  },
  {
    label: '反馈比例',
    prop: 'feedbackRatio',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '考核文档',
    // prop: 'evaluationDocument',
    slot: 'evaluationDocument',
    align: 'left',
    minWidth: '300px',
  },
  {
    label: '计划完成时间',
    prop: 'plannedCompletionTime',
    align: 'left',
    minWidth: '150px',
  },
  {
    label: '操作',
    prop: 'action',
    slot: 'action',
    fixed: 'right',
    minWidth: '300px',
    align: 'left',
  },
];
