| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- /*
- * @Author: liuJie
- * @Date: 2026-01-28 11:03:32
- * @LastEditors: liuJie
- * @LastEditTime: 2026-03-01 20:07:59
- * @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 },
- ];
- // 发送对象里面的状态选项
- export const VIEW_SENDER_WORK_PLAN_STATUS_OPTIONS = [
- { label: '全部', value: '' },
- { label: '待反馈', value: 2 },
- { label: '已完成', value: 3 },
- { label: '已作废', value: 4 },
- ];
- // 状态标签映射
- export const WORK_PLAN_STATUS_LABEL: Record<string, string> = {
- '1': '未下发',
- '2': '待反馈',
- '3': '已完成',
- '4': '已作废',
- };
- // 安全体系建设工作规划管理(管理员列表)
- 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: '120px',
- },
- {
- label: '培训计划名称',
- prop: 'trainingPlanName',
- align: 'left',
- minWidth: '150px',
- showOverflowTooltip: true,
- },
- {
- label: '责任部门',
- prop: 'responsibleDeptNames',
- align: 'left',
- minWidth: '120px',
- },
- {
- label: '配合部门',
- prop: 'cooperateDeptNames',
- align: 'left',
- minWidth: '120px',
- },
- {
- label: '下发数',
- prop: 'issuedCount',
- slot: 'issuedCount',
- },
- {
- label: '反馈数',
- prop: 'feedbackCount',
- slot: 'feedbackCount',
- },
- {
- label: '反馈比例',
- prop: 'feedbackRatio',
- slot: 'feedbackRatio',
- },
- {
- label: '计划完成时间',
- prop: 'plannedEndTime',
- slot: 'plannedEndTime',
- },
- {
- label: '操作',
- prop: 'action',
- slot: 'action',
- fixed: 'right',
- width: '280px',
- align: 'left',
- },
- ];
- // 查看发送对象列表
- export const VIEW_SENDS_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: '120px',
- },
- {
- label: '培训计划名称',
- prop: 'trainingPlanName',
- align: 'left',
- minWidth: '150px',
- showOverflowTooltip: true,
- },
- {
- label: '责任部门',
- prop: 'responsibleDeptNames',
- align: 'left',
- minWidth: '120px',
- },
- {
- label: '配合部门',
- prop: 'cooperateDeptNames',
- align: 'left',
- minWidth: '120px',
- },
- {
- label: '下发分组名称',
- prop: 'executGroupNames',
- align: 'left',
- minWidth: '130px',
- },
- {
- label: '下发责任人',
- prop: 'issuedByName',
- align: 'left',
- minWidth: '120px',
- },
- {
- label: '计划完成时间',
- prop: 'plannedComplateTime',
- align: 'left',
- minWidth: '160px',
- },
- {
- label: '操作',
- prop: 'action',
- slot: 'action',
- fixed: 'right',
- width: '280px',
- align: 'left',
- },
- ];
|