reportApi.js
993 Bytes
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
const biUrl = 'rop-dj-pe-analysis/router'
export default {
/**
*
* 查询数据报告汇总
*
*/
getReportSummary (data = {}) {
data.method = 'dj.api.smartcarlife.data.report.summary.query'
return window.$DJ_HTTP({
url: biUrl,
data,
returnAll: true
})
},
/**
* 查询用户订阅配置
*/
getUserSubscribeConfig (data = {}) {
data.method = 'org.ore.api.report.subscribe.config'
return window.$DJ_HTTP({
url: biUrl,
data,
})
},
/**
更新展业月报订阅状态
*/
updateMonthlySubscribeStatus (data = {}) {
data.method = 'org.ore.api.report.subscribe.monthly'
return window.$DJ_HTTP({
url: biUrl,
data,
})
},
/**
更新展业周报订阅状态
*/
updateWeeklySubscribeStatus (data = {}) {
data.method = 'org.ore.api.report.subscribe.weekly'
return window.$DJ_HTTP({
url: biUrl,
data,
})
},
}