index.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. import request from '@/utils/request'
  2. // 获取订单数据
  3. export function getIndexOrderInfo(query) {
  4. return request({
  5. url: '/isv/supply_chain/indexOrderInfo',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 获取服务费数据
  11. export function getIndexServiceAmountInfo(query) {
  12. return request({
  13. url: '/isv/supply_chain/indexServiceAmountInfo',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 获取金额数据
  19. export function getIndexAmountInfo(query) {
  20. return request({
  21. url: '/isv/supply_chain/indexAmountInfo',
  22. method: 'get',
  23. params: query
  24. })
  25. }
  26. // 获取达人排行
  27. export function getIndexPromoterRank(query) {
  28. return request({
  29. url: '/isv/supply_chain/indexPromoterRank',
  30. method: 'get',
  31. params: query
  32. })
  33. }
  34. // 获取商品排行
  35. export function getIndexOrderRank(query) {
  36. return request({
  37. url: '/isv/supply_chain/indexOrderRank',
  38. method: 'get',
  39. params: query
  40. })
  41. }
  42. // 首页订单统计-echarts图表
  43. export function getIndexStatistics(query) {
  44. return request({
  45. url: '/isv/supply_chain/indexStatistics',
  46. method: 'get',
  47. params: query
  48. })
  49. }
  50. // 首页时间段对比
  51. export function getTimeRatio(query) {
  52. return request({
  53. url: '/isv/supply_chain/indexTimeIntervalRatio',
  54. method: 'get',
  55. params: query
  56. })
  57. }
  58. // 工作台-个人信息
  59. export function getPersonalInfo(query) {
  60. return request({
  61. url: '/itemCollectSamples/getPersonalInfo',
  62. method: 'get',
  63. params: query
  64. })
  65. }
  66. // 工作台-订单数据
  67. export function getOrderData(query) {
  68. return request({
  69. url: '/itemCollectSamples/getOrderData',
  70. method: 'get',
  71. params: query
  72. })
  73. }
  74. // 工作台-订单数据
  75. export function getDataAnalysis(query) {
  76. return request({
  77. url: '/itemCollectSamples/getDataAnalysis',
  78. method: 'get',
  79. params: query
  80. })
  81. }