queueManagementApi.js
4.14 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
116
117
118
119
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)
},
getCountData(params, config) {
return req('get', `/queuing/countData`, params, config)
},
// 营业时间设置
getOpentimeList(params, config) {
return req('get', `/b-queue-mall-opentime/list`, params, config)
},
addOpentime(params, config) {
return req('POST', `/b-queue-mall-opentime`, params, config)
},
updateOpentime(params, config) {
return req('PUT', `/b-queue-mall-opentime/${params.id}`, params, config)
},
deleteOpentime(params, config) {
return req('DELETE', `/b-queue-mall-opentime/${params.id}`, params, config)
},
getRecognition(params, config) {
return req('get', `/d-queue-recognition/page`, params, config)
},
getTrajectory(params, config) {
return req('get', `/queuing/person/trajectory`, params, config)
},
// 报警记录
getAlarmMessageList(params, config) {
return req('get', `/d-cashier-alarm-message-log/page`, params, config)
},
// 报警规则
getAlarmRulesList(params, config) {
return req('get', `/d-cashier-alarm-rule/list`, params, config)
},
addAlarmRules(params, config) {
return req('POST', `/d-cashier-alarm-rule`, params, config)
},
updateAlarmRules(params, config) {
return req('PUT', `/d-cashier-alarm-rule`, params, config)
},
// 排队详情
getqueueDetailList(params, config) {
return req('get', `/d-cashier-channel-minute-count-data/page`, params, config)
},
// queuing/counters/exit/closed
getExitClosedList(params, config) {
return req('get', `/queuing/counters/exit/closed`, params, config)
},
getDistributeList(params, config) {
return req('get', `/queuing/waitTime/distribute`, params, config)
},
getAlarmMessageLog(params, config) {
return req('PUT', `/d-cashier-alarm-message-log/${params.id}`, params, config)
},
}
export default queueManagementApi;