api.js 6.87 KB
Newer Older
yanzhongrong's avatar
yanzhongrong committed
1
import request from '@/utils/request';
neogcg's avatar
neogcg committed
2 3

const path = {
4 5 6 7 8 9
  railWaylist: 'api/railWay/selectPage',
  railWaydetail: 'api/railWay/detail',
  railWaysave: 'api/railWay/save',
  railWaybatchDelete: 'api/railWay/batchDelete',
  railWayselectList: 'api/railWay/selectList',
  updateRailWay: 'api/railWay/updateRailWay',
neogcg's avatar
neogcg committed
10

11 12 13 14 15
  sitelist: 'api/site/selectPage',
  sitedetail: 'api/site/detail',
  sitesave: 'api/site/save',
  sitebatchDelete: 'api/site/batchDelete',
  siteselectList: 'api/site/selectList',
dupengyu's avatar
dupengyu committed
16 17
  selectForSite: 'api/site/selectForSite',//铁路查站点
  updateSiteConf: 'api/site/updateSiteConf',
neogcg's avatar
neogcg committed
18

19 20 21 22 23 24 25
  fsuList: 'api/fsu/selectPage',
  fsudetail: 'api/fsu/detail',
  fsusave: 'api/fsu/save',
  fsubatchDelete: 'api/fsu/batchDeleteFsu',
  fsuselectList: 'api/fsu/selectList',
  selectForFsu: 'api/fsu/selectForFsu',
  updateFsuConf: 'api/fsu/updateFsuConf',
neogcg's avatar
neogcg committed
26

dupengyu's avatar
dupengyu committed
27
  selectFsuItem: 'api/dict/selectFsuItem',//fsu数据字典
neogcg's avatar
neogcg committed
28

29 30 31 32 33 34
  monitorEquipList: 'api/monitorEquip/selectPage',
  monitorEquipdetail: 'api/monitorEquip/detail',
  monitorEquipsave: 'api/monitorEquip/save',
  monitorEquipbatchDelete: 'api/monitorEquip/batchDeleteEquip',
  monitorEquipselectList: 'api/monitorEquip/selectList',
  selectForEquip: 'api/monitorEquip/selectForEquip',
dupengyu's avatar
dupengyu committed
35 36
  selectMonitorItem: 'api/dict/selectMonitorItem',//监测设备字典
  updateMonitorEquipConf: 'api/monitorEquip/updateMonitorEquipConf',
neogcg's avatar
neogcg committed
37

38 39 40 41 42 43 44
  leakyCableList: 'api/leakyCable/selectPage',
  leakyCabledetail: 'api/leakyCable/detail',
  leakyCablesave: 'api/leakyCable/save',
  leakyCablebatchDelete: 'api/leakyCable/batchDeleteEquip',
  leakyCableselectList: 'api/leakyCable/selectList',
  selectForCable: 'api/leakyCable/selectForCable',
  updateLeakyCableConf: 'api/leakyCable/updateLeakyCableConf',
yanzhongrong's avatar
yanzhongrong committed
45

46 47 48 49 50
  antennaFeederSave: 'api/antennaFeeder/save',
  antennaFeederDelete: 'api/antennaFeeder/batchDeleteEquip',
  antennaFeederDetail: 'api/antennaFeeder/detail',
  antennaFeederList: 'api/antennaFeeder/selectFeederPage',
  updateFeederConf: 'api/antennaFeeder/updateFeederConf',
dupengyu's avatar
dupengyu committed
51 52

  autoList: '/device/autoAdd/selectPage',
dupengyu's avatar
dupengyu committed
53 54 55
  waveStatistics: '/device/sampling/waveStatistics',
  distanceStatistics: '/device/sampling/distanceStatistics',
  samplingList: '/device/sampling/selectPage',
dupengyu's avatar
dupengyu committed
56 57 58
  sysRailwayBureaus: '/api/sysRailwayBureaus/selectAll'


neogcg's avatar
neogcg committed
59
}
neogcg's avatar
neogcg committed
60
// 铁路线
neogcg's avatar
neogcg committed
61
export function railWaylist() {
yanzhongrong's avatar
yanzhongrong committed
62
  return request.post(path.railWaylist, ...arguments);
neogcg's avatar
neogcg committed
63 64
}
export function railWaydetail() {
yanzhongrong's avatar
yanzhongrong committed
65
  return request.post(path.railWaydetail, ...arguments);
neogcg's avatar
neogcg committed
66 67
}
export function railWaysave() {
yanzhongrong's avatar
yanzhongrong committed
68
  return request.post(path.railWaysave, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
69
}
neogcg's avatar
neogcg committed
70
export function railWaybatchDelete() {
yanzhongrong's avatar
yanzhongrong committed
71
  return request.post(path.railWaybatchDelete, ...arguments);
neogcg's avatar
neogcg committed
72 73
}
export function railWayselectList() {
yanzhongrong's avatar
yanzhongrong committed
74
  return request.post(path.railWayselectList, ...arguments);
neogcg's avatar
neogcg committed
75
}
yanzhongrong's avatar
yanzhongrong committed
76
export function updateRailWay() {
yanzhongrong's avatar
yanzhongrong committed
77
  return request.post(path.updateRailWay, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
78
}
neogcg's avatar
neogcg committed
79

neogcg's avatar
neogcg committed
80
//站点
dupengyu's avatar
dupengyu committed
81 82 83 84

export function sysRailwayBureaus() {
  return request.post(path.sysRailwayBureaus, ...arguments);
}
neogcg's avatar
neogcg committed
85
export function selectForSite() {
yanzhongrong's avatar
yanzhongrong committed
86
  return request.post(path.selectForSite, ...arguments);
neogcg's avatar
neogcg committed
87
}
yanzhongrong's avatar
yanzhongrong committed
88
export function sitelist() {
yanzhongrong's avatar
yanzhongrong committed
89
  return request.post(path.sitelist, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
90 91
}
export function sitedetail() {
yanzhongrong's avatar
yanzhongrong committed
92
  return request.post(path.sitedetail, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
93 94
}
export function sitesave() {
yanzhongrong's avatar
yanzhongrong committed
95
  return request.post(path.sitesave, ...arguments);
dupengyu's avatar
dupengyu committed
96
}
yanzhongrong's avatar
yanzhongrong committed
97
export function sitebatchDelete() {
yanzhongrong's avatar
yanzhongrong committed
98
  return request.post(path.sitebatchDelete, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
99 100
}
export function siteselectList() {
yanzhongrong's avatar
yanzhongrong committed
101
  return request.post(path.siteselectList, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
102 103
}
export function updateSiteConf() {
yanzhongrong's avatar
yanzhongrong committed
104
  return request.post(path.updateSiteConf, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
105 106
}

neogcg's avatar
neogcg committed
107

yanzhongrong's avatar
yanzhongrong committed
108 109
//fsu
export function selectForFsu() {
yanzhongrong's avatar
yanzhongrong committed
110
  return request.post(path.selectForFsu, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
111 112
}
export function selectFsuItem() {//fsu字典
yanzhongrong's avatar
yanzhongrong committed
113
  return request.post(path.selectFsuItem, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
114 115
}
export function fsulist() {
yanzhongrong's avatar
yanzhongrong committed
116
  return request.post(path.fsuList, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
117 118
}
export function fsudetail() {
yanzhongrong's avatar
yanzhongrong committed
119
  return request.post(path.fsudetail, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
120 121
}
export function fsusave() {
yanzhongrong's avatar
yanzhongrong committed
122
  return request.post(path.fsusave, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
123 124
}
export function fsubatchDelete() {
yanzhongrong's avatar
yanzhongrong committed
125
  return request.post(path.fsubatchDelete, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
126 127
}
export function fsuselectList() {
yanzhongrong's avatar
yanzhongrong committed
128
  return request.post(path.fsuselectList, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
129 130
}
export function updateFsuConf() {
yanzhongrong's avatar
yanzhongrong committed
131
  return request.post(path.updateFsuConf, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
132 133 134 135
}


//监测
neogcg's avatar
neogcg committed
136
export function selectMonitorItem() {
yanzhongrong's avatar
yanzhongrong committed
137
  return request.post(path.selectMonitorItem, ...arguments);
neogcg's avatar
neogcg committed
138
}
neogcg's avatar
neogcg committed
139
export function monitorEquiplist() {
yanzhongrong's avatar
yanzhongrong committed
140
  return request.post(path.monitorEquipList, ...arguments);
neogcg's avatar
neogcg committed
141 142
}
export function monitorEquipdetail() {
yanzhongrong's avatar
yanzhongrong committed
143
  return request.post(path.monitorEquipdetail, ...arguments);
neogcg's avatar
neogcg committed
144 145
}
export function monitorEquipsave() {
yanzhongrong's avatar
yanzhongrong committed
146
  return request.post(path.monitorEquipsave, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
147
}
neogcg's avatar
neogcg committed
148
export function monitorEquipbatchDelete() {
yanzhongrong's avatar
yanzhongrong committed
149
  return request.post(path.monitorEquipbatchDelete, ...arguments);
neogcg's avatar
neogcg committed
150 151
}
export function monitorEquipselectList() {
yanzhongrong's avatar
yanzhongrong committed
152
  return request.post(path.monitorEquipselectList, ...arguments);
neogcg's avatar
neogcg committed
153
}
neogcg's avatar
neogcg committed
154
export function selectForEquip() {
yanzhongrong's avatar
yanzhongrong committed
155
  return request.post(path.selectForEquip, ...arguments);
neogcg's avatar
neogcg committed
156
}
yanzhongrong's avatar
yanzhongrong committed
157
export function updateMonitorEquipConf() {
yanzhongrong's avatar
yanzhongrong committed
158
  return request.post(path.updateMonitorEquipConf, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
159 160 161
}


neogcg's avatar
neogcg committed
162 163
//漏缆
export function leakyCablelist() {
yanzhongrong's avatar
yanzhongrong committed
164
  return request.post(path.leakyCableList, ...arguments);
neogcg's avatar
neogcg committed
165 166
}
export function leakyCabledetail() {
yanzhongrong's avatar
yanzhongrong committed
167
  return request.post(path.leakyCabledetail, ...arguments);
neogcg's avatar
neogcg committed
168 169
}
export function leakyCablesave() {
yanzhongrong's avatar
yanzhongrong committed
170
  return request.post(path.leakyCablesave, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
171
}
neogcg's avatar
neogcg committed
172
export function leakyCablebatchDelete() {
yanzhongrong's avatar
yanzhongrong committed
173
  return request.post(path.leakyCablebatchDelete, ...arguments);
neogcg's avatar
neogcg committed
174 175
}
export function leakyCableselectList() {
yanzhongrong's avatar
yanzhongrong committed
176
  return request.post(path.leakyCableselectList, ...arguments);
neogcg's avatar
neogcg committed
177
}
neogcg's avatar
neogcg committed
178
export function selectForCable() {
yanzhongrong's avatar
yanzhongrong committed
179
  return request.post(path.selectForCable, ...arguments);
neogcg's avatar
neogcg committed
180
}
yanzhongrong's avatar
yanzhongrong committed
181
export function updateLeakyCableConf() {
yanzhongrong's avatar
yanzhongrong committed
182
  return request.post(path.updateLeakyCableConf, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
183
}
neogcg's avatar
neogcg committed
184

yanzhongrong's avatar
yanzhongrong committed
185 186
// 天馈线
export function antennaFeederSave() {
yanzhongrong's avatar
yanzhongrong committed
187
  return request.post(path.antennaFeederSave, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
188 189
}
export function antennaFeederDelete() {
yanzhongrong's avatar
yanzhongrong committed
190
  return request.post(path.antennaFeederDelete, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
191 192
}
export function antennaFeederDetail() {
yanzhongrong's avatar
yanzhongrong committed
193
  return request.post(path.antennaFeederDetail, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
194 195
}
export function antennaFeederList() {
yanzhongrong's avatar
yanzhongrong committed
196
  return request.post(path.antennaFeederList, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
197 198
}
export function updateFeederConf() {
yanzhongrong's avatar
yanzhongrong committed
199
  return request.post(path.updateFeederConf, ...arguments);
dupengyu's avatar
dupengyu committed
200 201 202 203 204 205 206 207 208
}

// 自动添加配置
export function autoList() {
  return request.post(path.autoList, ...arguments);
}
// 漏缆链路及天馈接口驻波比数据趋势分析
export function waveStatistics(params) {
  return request({
dupengyu's avatar
dupengyu committed
209 210 211
    url: path.waveStatistics,
    method: 'post',
    params
dupengyu's avatar
dupengyu committed
212 213
  })
}
dupengyu's avatar
dupengyu committed
214 215 216 217 218 219 220 221
export function distanceStatistics(params) {
  return request({
    url: path.distanceStatistics,
    method: 'post',
    params
  })
}

dupengyu's avatar
dupengyu committed
222 223 224
// 漏缆链路及天馈接口驻波比数据趋势分析 列表
export function samplingList(params) {
  return request({
dupengyu's avatar
dupengyu committed
225 226 227
    url: path.samplingList,
    method: 'post',
    params
dupengyu's avatar
dupengyu committed
228
  })
yanzhongrong's avatar
yanzhongrong committed
229
}