baseReport.js
2.82 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
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)
},
}
export default baseReport;