/**
 * 灾害防范通用常量
 */

// 生效状态
export enum ACTIVE_STATUS {
  INACTIVE = 0,
  ACTIVE,
  NOT_EFFECTIVE,
}

export const ACTIVE_STATUS_COLOR = {
  [ACTIVE_STATUS.ACTIVE]: '#52c41a',
  [ACTIVE_STATUS.INACTIVE]: '#ff4d4f',
  [ACTIVE_STATUS.NOT_EFFECTIVE]: '#1890ff',
};

export const ACTIVE_STATUS_MAP: Record<number, string> = {
  [ACTIVE_STATUS.ACTIVE]: '生效',
  [ACTIVE_STATUS.INACTIVE]: '失效',
  [ACTIVE_STATUS.NOT_EFFECTIVE]: '未生效',
};

export const ACTIVE_STATUS_OPTIONS_DEFAULT = [
  {
    label: '生效',
    value: ACTIVE_STATUS.ACTIVE,
  },
  {
    label: '失效',
    value: ACTIVE_STATUS.INACTIVE,
  },
];

export const ACTIVE_STATUS_OPTIONS = [
  {
    label: '生效',
    value: ACTIVE_STATUS.ACTIVE,
  },
  {
    label: '未生效',
    value: ACTIVE_STATUS.NOT_EFFECTIVE,
  },
];

export const ACTIVE_STATUS_OPTIONS_MANAGEMENT = [
  {
    label: '未生效',
    value: ACTIVE_STATUS.NOT_EFFECTIVE,
  },
  ...ACTIVE_STATUS_OPTIONS_DEFAULT,
];

/**
 * 文件类型图标
 */
import word from '@/assets/svg/word.svg';
import excel from '@/assets/svg/excel.svg';
import ppt from '@/assets/svg/ppt.svg';
import pdf from '@/assets/svg/pdf.svg';
export const FILE_TYPE_ICON = {
  word: word,
  excel: excel,
  ppt: ppt,
  pdf: pdf,
};

/**
 * 灾害类型
 */
export const DISASTER_TYPE = [
  {
    label: '台风',
    value: '台风',
  },
  {
    label: '暴雨',
    value: '暴雨',
  },
  {
    label: '大风',
    value: '大风',
  },
  {
    label: '暴雪',
    value: '暴雪',
  },
  {
    label: '高温',
    value: '高温',
  },
  {
    label: '强对流',
    value: '强对流',
  },
  {
    label: '寒潮',
    value: '寒潮',
  },
  {
    label: '沙尘暴',
    value: '沙尘暴',
  },
  {
    label: '低温',
    value: '低温',
  },
  {
    label: '干旱',
    value: '干旱',
  },
  {
    label: '霜冻',
    value: '霜冻',
  },
  {
    label: '冰冻',
    value: '冰冻',
  },
  {
    label: '大雾',
    value: '大雾',
  },
  {
    label: '霾',
    value: '霾',
  },
];

/**
 * 灾害等级
 */
export const DISASTER_LEVEL = [
  {
    label: 'IV级/一般',
    value: 'IV级/一般',
  },
  {
    label: 'III级/较重',
    value: 'III级/较重',
  },
  {
    label: 'II级/严重',
    value: 'II级/严重',
  },
  {
    label: 'I级/特别严重',
    value: 'I级/特别严重',
  },
];
