dashboard.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import request from '@/utils/request';
  2. // 首页数据概览
  3. export function viewModelApi() {
  4. return request({
  5. url: '/admin/platform/statistics/home/index',
  6. method: 'GET',
  7. });
  8. }
  9. // 用户曲线图
  10. export function chartUserApi() {
  11. return request({
  12. url: '/admin/statistics/home/chart/user',
  13. method: 'get',
  14. });
  15. }
  16. // 用户购买统计
  17. export function chartBuyApi() {
  18. return request({
  19. url: '/admin/statistics/home/chart/user/buy',
  20. method: 'get',
  21. });
  22. }
  23. // 订单量趋势 30天
  24. export function chartOrder30Api() {
  25. return request({
  26. url: '/admin/statistics/home/chart/order',
  27. method: 'get',
  28. });
  29. }
  30. // 订单量趋势 月
  31. export function chartOrderMonthApi() {
  32. return request({
  33. url: '/admin/statistics/home/chart/order/month',
  34. method: 'get',
  35. });
  36. }
  37. // 订单量趋势 周
  38. export function chartOrderWeekApi() {
  39. return request({
  40. url: '/admin/statistics/home/chart/order/week',
  41. method: 'get',
  42. });
  43. }
  44. // 订单量趋势 年
  45. export function chartOrderYearApi() {
  46. return request({
  47. url: '/admin/statistics/home/chart/order/year',
  48. method: 'get',
  49. });
  50. }
  51. // 首页经营数据
  52. export function businessData() {
  53. return request({
  54. url: '/admin/platform/statistics/home/operating/data',
  55. method: 'get',
  56. });
  57. }
  58. /**
  59. * 用户渠道数据
  60. * @param pram
  61. */
  62. export function userChannelData() {
  63. return request({
  64. url: `/admin/platform/statistics/home/channel`,
  65. method: 'GET',
  66. });
  67. }