statistic.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // 数据统计接口
  2. import $http from "@/utils/request";
  3. // 获取全部统计数据
  4. export const queryAll = (data) =>
  5. $http({
  6. method: "post",
  7. url: "/alarm/statistic/query",
  8. data,
  9. notShowLoading: true,
  10. });
  11. // 获取全部统计数据
  12. export const queryCache = (data) =>
  13. $http({
  14. method: "post",
  15. url: "/alarm/statistic/query2",
  16. data,
  17. notShowLoading: true,
  18. });
  19. // 获取按时间统计柱状图数据
  20. export const getDateBarData = (data) =>
  21. $http({
  22. method: "post",
  23. url: "/alarm/statistic/getDateBarData",
  24. data,
  25. notShowLoading: true,
  26. });
  27. // 获取按类别统计环形图数据
  28. export const getCategoryPieData = (data) =>
  29. $http({
  30. method: "post",
  31. url: "/alarm/statistic/getCategoryPieData",
  32. data,
  33. notShowLoading: true,
  34. });
  35. // 获取按状态统计环形图数据
  36. export const getDealStatusPieData = (data) =>
  37. $http({
  38. method: "post",
  39. url: "/alarm/statistic/getDealStatusPieData",
  40. data,
  41. notShowLoading: true,
  42. });
  43. // 获取排名柱状图数据
  44. export const getRankBarBarData = (data) =>
  45. $http({
  46. method: "post",
  47. url: "/alarm/statistic/getRankBarBarData",
  48. data,
  49. notShowLoading: true,
  50. });
  51. // 获取详细统计数据
  52. export const getDetailData = (data) =>
  53. $http({
  54. method: "post",
  55. url: "/alarm/statistic/getDetailData",
  56. data,
  57. notShowLoading: true,
  58. });