ERP-node/frontend/constants/userHistory.ts

33 lines
1.2 KiB
TypeScript

// 사용자 변경이력 관련 상수 정의 (원본 JSP 기반)
export const USER_HISTORY_TABLE_COLUMNS = [
{ key: "no", label: "No", width: "10%", align: "center" },
{ key: "SABUN", label: "사번", width: "*", align: "center" },
{ key: "USER_ID", label: "사용자 ID", width: "*", align: "center" },
{ key: "USER_NAME", label: "사용자 이름", width: "*", align: "center" },
{ key: "DEPT_NAME", label: "부서명", width: "*", align: "center" },
{ key: "STATUS", label: "상태", width: "*", align: "center" },
{ key: "HISTORY_TYPE", label: "이력유형", width: "*", align: "center" },
{ key: "WRITER_NAME", label: "작성자", width: "*", align: "center" },
{ key: "REG_DATE_TITLE", label: "작성일", width: "*", align: "center" },
] as const;
// 상태 배지 색상 매핑
export const STATUS_BADGE_VARIANTS = {
: "default",
: "secondary",
active: "default",
inactive: "secondary",
Y: "default",
N: "secondary",
} as const;
// 변경 유형 배지 색상 매핑
export const CHANGE_TYPE_BADGE_VARIANTS = {
"사용자 정보 저장": "default",
: "default",
: "secondary",
: "destructive",
: "outline",
} as const;