safety-eval-service-frontend/src/enumerate/constant/index.js

53 lines
1.3 KiB
JavaScript

/**
* 全局常量定义
*/
/** 证书状态 */
export const CERT_STATUS_MAP = {
normal: { label: "正常", color: "success" },
expiring: { label: "即将到期", color: "warning" },
expired: { label: "已过期", color: "error" },
};
/** 核验状态 */
export const VERIFY_STATUS_MAP = {
pending: { label: "待确认", color: "warning" },
passed: { label: "确认通过", color: "success" },
rejected: { label: "打回", color: "error" },
};
/** 审核状态 */
export const REVIEW_STATUS_MAP = {
pending: { label: "待审核", color: "warning" },
2: { label: "审核中", color: "processing" },
3: { label: "打回", color: "error" },
};
/** 专家核验状态 */
export const EXPERT_STATUS_MAP = {
pending: { label: "待核验", color: "blue" },
arranging: { label: "待安排", color: "warning" },
passed: { label: "已核验", color: "success" },
};
/** 公示状态 */
export const PUBLICITY_STATUS_MAP = {
pending: { label: "待公示", color: "warning" },
published: { label: "已公示", color: "success" },
};
/** 变更状态 */
export const CHANGE_STATUS_MAP = {
stuck: { label: "停滞中", color: "error" },
pending: { label: "待审核", color: "warning" },
approved: { label: "已审核", color: "success" },
};
/** 专家等级 */
export const EXPERT_LEVEL_MAP = {
1: "一级",
2: "二级",
3: "三级",
};