index.js
2.21 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
import request from '@/utils/request'
const service = window.lwConfig.services.system
const wecom = window.lwConfig.services.system + window.lwConfig.services.wecom
// 新增
export function addSop(data) {
return request({
url: wecom + '/sop/createWeSop',
method: 'post',
data: data,
})
}
// 更新
export function updateSop(data) {
return request({
url: wecom + '/sop/updateWeSop',
method: 'put',
data: data,
})
}
//客户属性
export function getBaseData(data) {
return request({
url: wecom + '/strategic/crowd/getDownOptions',
method: 'post',
data: data,
})
}
// 列表
export function getTableList(data) {
return request({
url: wecom + '/sop/findWeSopLists',
params: data,
})
}
// 列表 -- 删除
export function deleteTableItems(ids) {
return request({
url: wecom + '/sop/' + ids,
method: 'delete',
})
}
// 列表 -- 启停
export function updateSopState(data) {
return request({
url: wecom + '/sop/updateSopState',
method: 'put',
data,
})
}
// 详情
export function getSopDetail(id) {
return request({
url: wecom + '/sop/getDetail/' + id,
})
}
// 详情 --tab
export function getDetailTab(id) {
return request({
url: wecom + '/sop/findWeSopDetailTab/' + id,
})
}
export function getChannelDetail(data) {
return request({
url: wecom + '/strategic/crowd/getCorpStateTagSource',
params: data,
})
}
// 详情 --列表详情 - 客户
export function getCustomerDetailTable(data) {
return request({
url: wecom + '/sop/findWeSopDetailCustomer',
params: data,
})
}
// 详情 --列表详情 - 客群
export function getGroupDetailTable(data) {
return request({
url: wecom + '/sop/findWeSopDetailGroup',
params: data,
})
}
// 详情 --推送内容 -客户
export function getCustomerSendContent(data) {
return request({
url: wecom + '/sop/findCustomerExecuteContent',
params: data,
})
}
// 详情 --推送内容 -客群
export function getGroupSendContent(data) {
return request({
url: wecom + '/sop/findGroupExecuteContent',
params: data,
})
}
// 详情 数据同步
export function getSyncData(id) {
return request({
url: wecom + '/sop/synchSopExecuteResult/' + id,
})
}