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

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

export const REGULATION_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '序号',
    align: 'center',
    width: '80px',
    type: 'index',
  },
  {
    label: '规定名称',
    prop: 'name',
    align: 'left',
    minWidth: '200px',
  },
  {
    label: '规定文件',
    prop: 'attachment',
    slot: 'attachment',
    align: 'left',
    minWidth: '360px',
  },
  {
    label: '生效状态',
    prop: 'effectState',
    slot: 'effectState',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '发布时间',
    prop: 'pushTime',
    align: 'left',
    minWidth: '200px',
  },
  {
    label: '操作',
    prop: 'action',
    slot: 'action',
    fixed: 'right',
    width: '180px',
    align: 'left',
  },
];

export const REGULATION_TABLE_COLUMNS_CHECKONLY: TableColumnProps[] = [
  {
    label: '序号',
    align: 'center',
    width: '80px',
    type: 'index',
  },
  {
    label: '规定名称',
    prop: 'name',
    align: 'left',
    minWidth: '200px',
  },
  {
    label: '规定文件',
    prop: 'attachment',
    slot: 'attachment',
    align: 'left',
    minWidth: '360px',
  },
  {
    label: '发布时间',
    prop: 'pushTime',
    align: 'left',
    minWidth: '200px',
  },
];

export const NOTICE_TABLE_COLUMNS: TableColumnProps[] = [
  {
    label: '序号',
    align: 'center',
    width: '80px',
    type: 'index',
  },
  {
    label: '通知标题',
    prop: 'name',
    align: 'left',
    minWidth: '200px',
  },

  {
    label: '通知文件',
    prop: 'attachment',
    slot: 'attachment',
    align: 'left',
    minWidth: '360px',
  },
  {
    label: '生效状态',
    prop: 'effectState',
    slot: 'effectState',
    align: 'center',
    minWidth: '120px',
  },
  {
    label: '发布时间',
    prop: 'pushTime',
    align: 'left',
    minWidth: '200px',
  },

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

export const NOTICE_TABLE_COLUMNS_CHECKONLY: TableColumnProps[] = [
  {
    label: '序号',
    align: 'center',
    width: '80px',
    type: 'index',
  },
  {
    label: '通知标题',
    prop: 'name',
    align: 'center',
    minWidth: '200px',
  },

  {
    label: '通知文件',
    prop: 'attachment',
    slot: 'attachment',
    align: 'left',
    minWidth: '360px',
  },
  {
    label: '发布时间',
    prop: 'pushTime',
    align: 'center',
    minWidth: '200px',
  },

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