Files
ok_r/lib/constants.ts
2026-01-25 21:55:29 +08:00

34 lines
891 B
TypeScript

export const REASON_CODES = {
RESOURCE: '资源不足',
DEPENDENCY: '依赖阻塞',
DECISION: '决策延迟',
SCOPE: '范围变更',
EXECUTION: '执行问题',
OTHER: '其他原因',
} as const;
export const PERIOD_TYPES = {
custom: '自定义',
'3d': '3天',
'1w': '1周',
'2w': '2周',
monthly: '月度',
} as const;
export const STATUS_COLORS = {
green: { bg: 'bg-emerald-100', text: 'text-emerald-700', border: 'border-emerald-500', label: '正常' },
yellow: { bg: 'bg-amber-100', text: 'text-amber-700', border: 'border-amber-500', label: '警告' },
red: { bg: 'bg-rose-100', text: 'text-rose-700', border: 'border-rose-500', label: '风险' },
} as const;
export const ROLE_LABELS = {
owner: '老板',
pm: '项目负责人',
member: '成员',
} as const;
export const DIRECTION_LABELS = {
increase: '增加',
decrease: '减少',
} as const;