constant.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* 推送消息类型:1-平台违规报警数据 2-平台访问统计数 3-指定人员访问数据 */
  2. export enum PushMessageTypeEnum {
  3. VIOLATION_WARNING = 1,
  4. ACCESS_COUNT = 2,
  5. DESIGNEE_ACCESS_DATA = 3
  6. }
  7. /* 功能类型:1是新增,2是查询,3是编辑 */
  8. export enum OperationTypeEnum {
  9. ADD = 1,
  10. SEARCH = 2,
  11. EDIT = 3
  12. }
  13. /* 统计时间段类型:1-周报 2-月报 3-季报 4-年报 5-自定义 */
  14. export enum StatisticTypeEnum {
  15. WEEK_REPORT = 1,
  16. MONTH_REPORT = 2,
  17. QUARTER_REPORT = 3,
  18. YEAR_REPORT = 4,
  19. CUSTOM_REPORT = 5,
  20. }
  21. export const OperationTypeNames = {
  22. [OperationTypeEnum.ADD]: '新增',
  23. [OperationTypeEnum.SEARCH]: '查询',
  24. [OperationTypeEnum.EDIT]: '编辑',
  25. }
  26. /* 默认值 */
  27. export const Default_Value = 0;
  28. /* 报表周期radio-group options */
  29. export const ReportOptions = [
  30. {
  31. value: StatisticTypeEnum.WEEK_REPORT,
  32. tooltipContent: `
  33. <span>每次推送上个自然周数据</span><br />
  34. <div style="text-align: center">(每周一至周日)</div>
  35. `,
  36. tooltipPlacement: "top",
  37. label: "周报",
  38. },
  39. {
  40. value: StatisticTypeEnum.MONTH_REPORT,
  41. tooltipContent: `
  42. <span>每次推送上个自然月数据</span><br />
  43. <div style="text-align: center">(每月第一天至最后一天)</div>
  44. `,
  45. tooltipPlacement: "top",
  46. label: "月报",
  47. },
  48. {
  49. value: StatisticTypeEnum.YEAR_REPORT,
  50. tooltipContent: `
  51. <span>每次推送上一整年的数据</span>
  52. `,
  53. tooltipPlacement: "top",
  54. label: "年报",
  55. },
  56. {
  57. value: StatisticTypeEnum.CUSTOM_REPORT,
  58. tooltipContent: `
  59. <span>根据个人需求按开始和结束日期进行统计</span>
  60. `,
  61. tooltipPlacement: "top",
  62. label: "自定义",
  63. },
  64. ];