1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'
|
| export default {
| // 获取控制系统类型
| getDriveTypeApi: () => getAction('/mdc/mdcDriveTypeParamConfig/getDriveParamOptions'),
| // -------------------------------------设备电流负载对比页面--------------------------------------------
| // 获取设备电流负载对比图表数据
| getEquipCurrentLoadContrastChartDataApi: params => getAction('/mdc/equipmentElectricStatistical/getElectricValue', params),
| // -------------------------------------设备参数阈值管理页面--------------------------------------------
| // 根据驱动类型获取参数
| getParamListByDriveTypeApi: controlSystemType => getAction(`/mdc/mdcDriveTypeParamConfig/getDriveParamOptionsByType?controlSystemType=${controlSystemType}`),
| // 增加设备参数阈值
| addParamThresholdApi: params => postAction('/mdc/mdcEquipmentThreshold/add', params),
| // 编辑设备参数阈值
| editParamThresholdApi: params => postAction('/mdc/mdcEquipmentThreshold/edit', params),
| // 删除设备参数阈值
| deleteParamThresholdApi: id => deleteAction('/mdc/mdcEquipmentThreshold/delete', { id }),
| // 删除设备参数阈值
| deleteBatchParamThresholdApi: ids => deleteAction('/mdc/mdcEquipmentThreshold/deleteBatch', { ids })
| }
|
|