baseReport.js
3.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import req from '@/api/http.js'
// baseReport 是定义基础报表的接口
const baseReport = {
/**
* 集团取报表 key id
* @param {Object} params
* @param {Object} config
*/
reportChart(params, config) {
return req('get', '/reportCharts', params, config)
},
/**
* 集团单个报表
* @param {String} reportType
* @param {Number} chartId
* @param {Object} params
* @param {Object} config
*/
reportAccSingleChart(reportType, chartId, params, config) {
return req('get', `/report/${reportType}/account/${chartId}`, params, config)
},
/**
* 集团报表
* @param {String} reportType
* @param {Object} params
* @param {Object} config
*/
accountReport(reportType, params, config) {
return req('get', `/report/${reportType}/account`, params, config)
},
/**
* 商场报表
* @param {String} reportType
* @param {Object} params
* @param {Object} config
*/
mallReport(reportType, params, config) {
return req('get', `/report/${reportType}/mall`, params, config)
},
/**
* 月份里客流最高位和最低位
*/
mallReportMaxMin(reportType, params, config) {
return req('get', `mallDayCountDatas/threshold/${reportType}`, params, config)
},
/**
* 商场单个报表
* @param {String} reportType
* @param {Number} chartId
* @param {Object} params
* @param {Object} config
*/
reportMallSingleChart(reportType, chartId, params, config) {
return req('get', `/report/${reportType}/mall/${chartId}`, params, config)
},
/**
* 楼层报表
* @param {String} reportType
* @param {Object} params
* @param {Object} config
*/
floorReport(reportType, params, config) {
return req('get', `/report/${reportType}/floor`, params, config)
},
/**
* 楼层单个报表
* @param {String} reportType
* @param {Number} chartId
* @param {Object} params
* @param {Object} config
*/
reportFloorSingleChart(reportType, chartId, params, config) {
return req('get', `/report/${reportType}/floor/${chartId}`, params, config)
},
/**
* 店铺报表
* @param {String} reportType
* @param {Object} params
* @param {Object} config
*/
zoneReport(reportType, params, config) {
return req('get', `/report/${reportType}/zone`, params, config)
},
/**
* 店铺单个报表
* @param {String} reportType
* @param {Number} chartId
* @param {Object} params
* @param {Object} config
*/
reportZoneSingleChart(reportType, chartId, params, config) {
return req('get', `/report/${reportType}/zone/${chartId}`, params, config)
},
// 获取集团头部信息
accountReportHead(reportType, params, config) {
return req('get', `/report/${reportType}/account/head`, params, config)
},
// 获取集团报表 body
accountReportBody(reportType, params, config) {
return req('get', `/report/${reportType}/account/body`, params, config)
},
/**
* 店铺漏斗报表
* @param {String} reportType
* @param {Number} chartId
* @param {Object} params
* @param {Object} config
*/
reportZoneFunnelChart(reportType, params, config) {
return req('get', `/report/${reportType}/zone/trafficFunnel`, params, config)
},
/**
* 店铺关联报表
*/
zoneAssociatedReport(params, config) {
return req('get', `/report/day/zone/sankey`, params, config)
}
}
export default baseReport;