index.js
1.68 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
import request from '@/utils/request'
const service = window.lwConfig.services.system
const wecom = window.lwConfig.services.system + window.lwConfig.services.wecom
export const indexTable = () => {
return request({
url: service + '/page/getCorpBasicData',
method: 'get',
})
}
export const indexEchart = () => {
return request({
url: service + '/page/getCorpRealTimeData',
method: 'get',
})
}
export const refresh = () => {
return request({
url: service + '/page/refresh',
method: 'get',
})
}
// 获取企业轨迹
export const getCompanyDynamicsData = (params) => {
return request({
url: service + '/open/trajectory/findCompanyDynamics',
params,
})
}
/**
* 客户数据-实时数据
* @params {*}
* deptIds 否[]部门
userIds 否[]员工
beginTime 是 开始时间
endTime 是 结束时间
*/
export const getRealCnt = (params) => {
return request({
url: wecom + '/operation/customer/getCustomerRealPageCnt',
params,
})
}
/**
* 客户数据分析
*/
export function getAnalysis() {
return request({
url: wecom + '/operation/customer/getAnalysis',
})
}
/**
* 客群数据分析
*/
export function getGroupAnalysis() {
return request({
url: wecom + '/operation/group/getAnalysis',
})
}
/**
* 客群数据-客群成员实时数据
* @param {*}
* chatIds 否[]群聊id
ownerIds 否[]群主id
beginTime 是 开始时间
endTime 是 结束时间
*/
export function getRealCntMember(params) {
return request({
url: wecom + '/operation/group/member/getGroupMemberRealPageCnt',
params,
})
}
// 首页接口
export const indexInfo = () => {
return request({
url: wecom + '/getWeIndex',
method: 'get',
})
}