| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- /*
- * @Author: liuJie
- * @Date: 2026-01-28 11:03:32
- * @LastEditors: liuJie
- * @LastEditTime: 2026-04-13 17:27:42
- * @Describe: file describe
- */
- 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: '' },
- { label: '未下发', value: 1 },
- { label: '进行中', value: 2 },
- { label: '已完成', value: 3 },
- { label: '已作废', value: 4 },
- { label: '待审核', value: 5 },
- ];
- // 状态标签映射
- export const WORK_PLAN_STATUS_LABEL: Record<string, string> = {
- '1': '未下发',
- '2': '进行中',
- '3': '已完成',
- '4': '已作废',
- '5': '待审核',
- };
- 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: 'statusName',
- align: 'center',
- minWidth: '100px',
- },
- {
- label: '分类名称',
- prop: 'categoryName',
- align: 'left',
- minWidth: '140px',
- },
- {
- label: '安全体系计划名称',
- prop: 'trainingPlanName',
- align: 'left',
- minWidth: '220px',
- showOverflowTooltip: true,
- },
- {
- label: '责任部门',
- prop: 'responsibleDeptNames',
- align: 'left',
- minWidth: '120px',
- showOverflowTooltip: true,
- },
- {
- label: '配合部门',
- prop: 'cooperateDeptNames',
- align: 'left',
- minWidth: '120px',
- showOverflowTooltip: true,
- },
- {
- label: '计划完成时间',
- prop: 'plannedComplateTime',
- align: 'left',
- minWidth: '160px',
- },
- {
- label: '操作',
- prop: 'action',
- slot: 'action',
- fixed: 'right',
- width: '280px',
- align: 'left',
- },
- ];
|