export const DEFAULT_PAGE_NUMBER = 1;
export const DEFAULT_PAGE_SIZE = 10;
export const DEFAULT_TOTAL_PAGE = 1;
export const DEFAULT_TOTAL_ROW = 0;

export enum QUESTION_SOURCE_TYPE {
  // ai检测
  ai = 1,
  // 人工上报
  manual = 2,
  // 全部
  all = 3,
}

export enum QUESTION_TYPE_MAIN {
  fromHuman = 1, //人的不安全行为
  fromThing = 2, //物的不安全状态
  fromEnvir = 3, //环境的不安全因素
  fromManage = 4, //管理措施的不规范
}

export const questionMainTypeNameMap = {
  [QUESTION_TYPE_MAIN.fromHuman]: '人的不安全行为',
  [QUESTION_TYPE_MAIN.fromThing]: '物的不安全状态',
  [QUESTION_TYPE_MAIN.fromEnvir]: '环境的不安全因素',
  [QUESTION_TYPE_MAIN.fromManage]: '管理措施的不规范',
};

export enum QUESTION_SEVERITY {
  slight = 1, // 轻微问题
  general = 2, // 一般问题
  serious = 3, // 严重问题
}

export const questionSeverityNameMap = {
  [QUESTION_SEVERITY.slight]: '轻微',
  [QUESTION_SEVERITY.general]: '一般',
  [QUESTION_SEVERITY.serious]: '严重',
};

// 问题处理状态：正常，超期未处理、长期未处理
export enum IssueProcessState {
  NOT_OVERDUE = 0, // 正常
  OVERDUE = 1, // 超期（逾期）
  LONGTIME = 2, // 长期
}

export const IssueProcessStateName = {
  [IssueProcessState.OVERDUE]: '超期未处理',
  [IssueProcessState.LONGTIME]: '长期未处理',
} as const;

// export const ISSUELIST_REQUEST_MAP = {
//   all: getIssueListByWorkshopCode,
//   workshop: getIssueListByWorkshopCode,
//   camera: getIssueListByCameraId,
// };
