queueManagementApi.js
2.27 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
import req from '@/api/httpqueueManagement.js'
const queueManagementApi = {
// 区域管理
getAreaList(params, config) {
return req('get', `/b-cashier-area/list`, params, config)
},
addArea(params, config) {
return req('POST', `/b-cashier-area`, params, config)
},
updateArea(params, config) {
return req('PUT', `/b-cashier-area/${params.id}`, params, config)
},
deleteArea(params, config) {
return req('DELETE', `/b-cashier-area/${params.id}`, params, config)
},
// 获取绑定的设备
getDevices(params, config) {
return req('GET', `/b-cashier-area/devices`, params, config)
},
bindDevices(params, config) {
return req('POST', `/b-cashier-area/bind`, params, config)
},
// 通道管理
getChannelList(params, config) {
return req('get', `/b-cashier-channel/list`, params, config)
},
addChannel(params, config) {
return req('POST', `/b-cashier-channel`, params, config)
},
updateChannel(params, config) {
return req('PUT', `/b-cashier-channel/${params.id}`, params, config)
},
deleteChannel(params, config) {
return req('DELETE', `/b-cashier-channel/${params.id}`, params, config)
},
// 相机位置标定
demarcateFun(params, config) {
return req('POST', `/b-cashier-area/demarcate`, params, config)
},
//排队实况
//统计数据和按通道统计排队情况
getStatistics(params, config) {
return req('get', `/queuing/statistics`, params, config)
},
//主页大屏人员点位分布
getdistribution(params, config) {
return req('get', `/queuing/distribution`, params, config)
},
//数据回放图表
getchart(params, config) {
return req('get', `/queuing/chart`, params, config)
},
// 基础客流
getCustomersOverview(params, config) {
return req('get', `/queuing/customers-overview/chart`, params, config)
},
// 快照预测
getSnapshotChart(params, config) {
return req('get', `/queuing/snapshot/chart`, params, config)
},
// 时刻回放
getDistributionDetail(params, config) {
return req('get', `/queuing/distribution/detail`, params, config)
},
}
export default queueManagementApi;