zouyu
7 天以前 b8da78824e4c67632abb65302f01ccf74d5a1096
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
import request from '@/utils/request'
 
// ==================== 巡检记录接口 ====================
export function getInspectionRecordList(query) {
  return request({
    url: '/safety/inspection/record/list',
    method: 'get',
    params: query
  })
}
 
export function addInspectionRecord(data) {
  return request({
    url: '/safety/inspection/record/add',
    method: 'post',
    data: data
  })
}
 
export function updateInspectionRecord(data) {
  return request({
    url: '/safety/inspection/record/update',
    method: 'put',
    data: data
  })
}
 
export function deleteInspectionRecord(id) {
  return request({
    url: '/safety/inspection/record/delete/' + id,
    method: 'delete'
  })
}
 
// 同步巡检数据(模拟子系统)
export function syncInspectionData() {
  return request({
    url: '/safety/inspection/record/sync',
    method: 'post'
  })
}
 
// ==================== 统计报表接口 ====================
export function getTodayStatistics() {
  return request({
    url: '/safety/inspection/statistics/today',
    method: 'get'
  })
}
 
export function getTrendStatistics(params) {
  return request({
    url: '/safety/inspection/statistics/trend',
    method: 'get',
    params: params
  })
}
 
export function getTypeStatistics(params) {
  return request({
    url: '/safety/inspection/statistics/type',
    method: 'get',
    params: params
  })
}
 
export function getInspectorStatistics(params) {
  return request({
    url: '/safety/inspection/statistics/inspector',
    method: 'get',
    params: params
  })
}