dangerStatisApi.js 563 B

1234567891011121314151617181920212223242526272829303132333435
  1. import request from '@/utils/request'
  2. /**
  3. * 获取统计
  4. * @returns
  5. */
  6. export function getDangerCounter() {
  7. return request({
  8. url: '/ent/danger/statis/getCounter',
  9. method: 'GET'
  10. })
  11. }
  12. /**
  13. * 基于分类统计
  14. * @returns
  15. */
  16. export function counterByCat() {
  17. return request({
  18. url: '/ent/danger/statis/counterByCat',
  19. method: 'GET'
  20. })
  21. }
  22. /**
  23. * 基于年度月份统计
  24. * @param year
  25. * @returns
  26. */
  27. export function counterByMonth(year) {
  28. return request({
  29. url: `/ent/danger/statis/counterByMonth/${year}`,
  30. method: 'GET'
  31. })
  32. }