tour.js
2.08 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
let http = require('../utils/request');
import _ from 'underscore';
module.exports = {
handle(params,config){
return http.post(`/patrol/patrolRecord/handle`, params,config);
},
tourUserList(params){
return http.get(`/patrol/s-user/mall/${params.mallId}`, params);
},
uploadFile(params){
return http.post(`/report/file`, params);
},
/**
* 用户列表
*/
userList(params) {
return http.get('/report/users', params);
},
/**
* 用户所属的商场
*/
userMall(params) {
return http.get('/report/userMalls', params);
},
//巡店记录
getPatrolRecordList(params) {
return http.get('/patrol/patrolRecord/list', params);
},
getPatrolSopTypeTree(params) {
return http.get('/patrol/patrolSopType/tree', params);
},
// 查看巡店详情
getPatrolRecordDetail(params,config) {
return http.get(`/patrol/patrolRecord/${params.id}`, params);
},
// 待点检任务
getPatrolCaptureRecordList(params){
return http.get(`/patrol/patrolCaptureRecord/list`,params)
},
// 定时抓怕配置
getRuleList(params){
return http.get(`/patrol/b-patrol-rule/list`, params)
},
//提交巡店记录
confirmPatrolRecord(params,config) {
return http.post(`/patrol/patrolRecord`, params,config);
},
/**
* 获取监控点列表
*/
getPatrolGateList(params) {
return http.get('/patrol/patrolGate/list', params);
},
getPatrolGate(params) {
return http.get(`/patrol/patrolGate/${params.id}`, params)
},
getLiveAddress(params) {
return http.get(`/patrol/patrolDeviceChannel/getLiveAddress/${params.id}`, params);
},
// 截图
getCapture(params) {
return http.get(`/patrol/patrolDeviceChannel/capture/${params.id}`, params);
},
getBase64(params){
return http.get(`/patrol/file`, params)
},
// 获取监控点关联sop
getPatrolGateSopProjectList(params) {
return http.get(`/patrol/patrolGateSopProject/list`, params);
},
}