api.js 861 Bytes
Newer Older
yanzhongrong's avatar
yanzhongrong committed
1 2 3 4 5
import request from '@/utils/request'

const path = {
  cableTimeList: 'sysMonitorAlarm/selectPage',
  cableConfirm: 'sysMonitorAlarm/confirm',
neogcg's avatar
neogcg committed
6 7
  cableCancel: 'sysMonitorAlarm/cancel',
  
yanzhongrong's avatar
yanzhongrong committed
8
  deviceList: 'sysConnectAlarm/selectPage',
neogcg's avatar
neogcg committed
9 10
  deviceConfirm: 'sysConnectAlarm/confirm',
  deviceCancel: 'sysConnectAlarm/cancel',
yanzhongrong's avatar
yanzhongrong committed
11 12 13 14 15 16
}

export function cableTimeList() {
  return request.post(path.cableTimeList, ...arguments)
}

neogcg's avatar
neogcg committed
17 18 19
export function cableCancel() {
  return request.post(path.cableCancel, ...arguments)
}
yanzhongrong's avatar
yanzhongrong committed
20 21 22 23 24 25 26
export function cableConfirm() {
  return request.post(path.cableConfirm, ...arguments)
}

export function deviceList() {
  return request.post(path.deviceList, ...arguments)
}
neogcg's avatar
neogcg committed
27 28 29 30 31 32
export function deviceConfirm() {
  return request.post(path.deviceConfirm, ...arguments)
}
export function deviceCancel() {
  return request.post(path.deviceCancel, ...arguments)
}