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

const path = {
4 5 6 7 8 9 10
  treeBaseInfo: '/api/home/treeBaseInfo',
  railWayOpen: '/api/railWay/updateRailWay',
  siteOpen: '/api/site/updateSite',
  fsuOpen: '/api/fsu/updateFsu',
  monitorEquipOpen: '/api/monitorEquip/updateMonitorEquip',
  leakyCableOpen: '/api/leakyCable/updateLeakyCable',
  updateFeeder: '/api/antennaFeeder/updateFeeder',
neogcg's avatar
neogcg committed
11

12 13
  getYear: '/api/sysStandingWaveRatio/getYear',
  getMonth: '/api/sysStandingWaveRatio/getMonth',
yanzhongrong's avatar
yanzhongrong committed
14 15 16
}

export function treeBaseInfo() {
yanzhongrong's avatar
yanzhongrong committed
17
  return request.post(path.treeBaseInfo, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
18
}
neogcg's avatar
neogcg committed
19
export function railWayOpen() {
yanzhongrong's avatar
yanzhongrong committed
20
  return request.post(path.railWayOpen, ...arguments);
neogcg's avatar
neogcg committed
21 22
} 
export function siteOpen() {
yanzhongrong's avatar
yanzhongrong committed
23
  return request.post(path.siteOpen, ...arguments);
neogcg's avatar
neogcg committed
24 25
} 
export function fsuOpen() {
yanzhongrong's avatar
yanzhongrong committed
26
  return request.post(path.fsuOpen, ...arguments);
neogcg's avatar
neogcg committed
27 28
} 
export function monitorEquipOpen() {
yanzhongrong's avatar
yanzhongrong committed
29
  return request.post(path.monitorEquipOpen, ...arguments);
neogcg's avatar
neogcg committed
30
}
yanzhongrong's avatar
yanzhongrong committed
31
export function leakyCableOpen() {
yanzhongrong's avatar
yanzhongrong committed
32
  return request.post(path.leakyCableOpen, ...arguments);
neogcg's avatar
neogcg committed
33
}
yanzhongrong's avatar
yanzhongrong committed
34
export function updateFeeder() {
yanzhongrong's avatar
yanzhongrong committed
35
  return request.post(path.updateFeeder, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
36
}
yanzhongrong's avatar
yanzhongrong committed
37 38

export function getYear() {
yanzhongrong's avatar
yanzhongrong committed
39
  return request.post(path.getYear, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
40 41
}
export function getMonth() {
yanzhongrong's avatar
yanzhongrong committed
42
  return request.post(path.getMonth, ...arguments);
yanzhongrong's avatar
yanzhongrong committed
43
}