/* 推送消息类型：1-平台违规报警数据 2-平台访问统计数 3-指定人员访问数据 */
export enum PushMessageTypeEnum {
  VIOLATION_WARNING = 1,
  ACCESS_COUNT = 2,
  DESIGNEE_ACCESS_DATA = 3
}

/* 功能类型：1是新增，2是查询，3是编辑 */
export enum OperationTypeEnum {
  ADD = 1,
  SEARCH = 2,
  EDIT = 3
}

/* 统计时间段类型：1-周报 2-月报 3-季报 4-年报 5-自定义 */
export enum StatisticTypeEnum {
  WEEK_REPORT = 1,
  MONTH_REPORT = 2,
  QUARTER_REPORT = 3,
  YEAR_REPORT = 4,
  CUSTOM_REPORT = 5,
}

export const OperationTypeNames = {
  [OperationTypeEnum.ADD]: '新增',
  [OperationTypeEnum.SEARCH]: '查询',
  [OperationTypeEnum.EDIT]: '编辑',
} 

/* 默认值 */
export const Default_Value = 0;

/* 报表周期radio-group options  */
export const ReportOptions = [
  {
    value: StatisticTypeEnum.WEEK_REPORT,
    tooltipContent: `
      <span>每次推送上个自然周数据</span><br />
      <div style="text-align: center">(每周一至周日)</div>
    `,
    tooltipPlacement: "top",
    label: "周报",
  },
  {
    value: StatisticTypeEnum.MONTH_REPORT,
    tooltipContent: `
      <span>每次推送上个自然月数据</span><br />
      <div style="text-align: center">(每月第一天至最后一天)</div>
    `,
    tooltipPlacement: "top",
    label: "月报",
  },
  {
    value: StatisticTypeEnum.YEAR_REPORT,
    tooltipContent: `
      <span>每次推送上一整年的数据</span>
    `,
    tooltipPlacement: "top",
    label: "年报",
  },
  {
    value: StatisticTypeEnum.CUSTOM_REPORT,
    tooltipContent: `
      <span>根据个人需求按开始和结束日期进行统计</span>
    `,
    tooltipPlacement: "top",
    label: "自定义",
  },
];
