fuliqi
2025-02-14 acd4f746de3e89e4a8b9b47b0f82e25cc25a17c1
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
import request from '@/utils/request'
 
// 查询运维点位列表
export function listPoint(query) {
  return request({
    url: '/yw-point/page',
    method: 'get',
    params: query
  })
}
 
// 查询运维点位详细
export function getPoint(id) {
  return request({
    url: '/yw-point/' + id,
    method: 'get'
  })
}
 
// 新增运维点位
export function addPoint(data) {
  return request({
    url: '/yw-point',
    method: 'post',
    data: data
  })
}
 
// 新增运维点位-批量
export function addPointBatch(data) {
  return request({
    url: '/yw-point/batch',
    method: 'post',
    data: data
  })
}
 
// 修改运维点位
export function updatePoint(data) {
  return request({
    url: '/yw-point',
    method: 'put',
    data: data
  })
}
 
// 批量修改运维点位
export function batchEdit(data) {
  return request({
    url: '/yw-point/batch',
    method: 'put',
    data: data
  })
}
 
 
// 删除运维点位
export function delPoint(id) {
  return request({
    url: '/yw-point/' + id,
    method: 'delete'
  })
}
 
// 点位下拉列表
export function pointSelectData(param) {
  return request({
    url: '/yw-point/select',
    method: 'get',
    params: param
  })
}
 
// 导出
export function exportData(param) {
  return request({
    url: '/yw-point/export',
    method: 'get',
    params: param,
    responseType: 'blob'
  })
}
 
// 导入
export function importData(data) {
  return request({
    url: '/yw-point/import',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    timeout: 150000
  })
}
 
// 根据单位id查找合同
export function timeRange(unitId) {
  return request({
    url: '/system/contract/time/' + unitId,
    method: 'get'
  })
}