import type { TableColumnProps } from '@/types/basic-table'; // 基础表格样式配置 export const TABLE_OPTIONS = { emptyText: '暂无数据', loading: true, maxHeight: 'calc(70vh - 150px)', }; // 状态选项 export const WORK_PLAN_STATUS_OPTIONS = [ { label: '未下发', value: 0 }, { label: '进行中', value: 1 }, { label: '已完成', value: 2 }, { label: '已作废', value: 3 }, ]; // 状态标签映射 export const WORK_PLAN_STATUS_LABEL: Record = { '0': '未下发', '1': '进行中', '2': '已完成', '3': '已作废', }; export const WORK_PLAN_TABLE_COLUMNS: TableColumnProps[] = [ { label: '编号', type: 'index', align: 'center', width: '80px', }, { label: '工作内容', prop: 'workContent', align: 'left', minWidth: '150px', showOverflowTooltip: true, }, { label: '状态', prop: 'status', slot: 'status', align: 'center', minWidth: '100px', }, { label: '分类名称', prop: 'classifyName', align: 'left', minWidth: '120px', }, { label: '培训计划名称', prop: 'trainingPlanName', align: 'left', minWidth: '150px', showOverflowTooltip: true, }, { label: '责任部门', prop: 'responsibleDept', align: 'left', minWidth: '120px', }, { label: '配合部门', prop: 'cooperateDept', align: 'left', minWidth: '120px', }, { label: '计划完成时间', prop: 'planCompleteTime', align: 'left', minWidth: '160px', }, { label: '操作', prop: 'action', slot: 'action', fixed: 'right', width: '280px', align: 'left', }, ];