src/api/mdc.js
@@ -1,7 +1,6 @@
import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'
export default {
  // -------------------------------------驱动参数管理页面----------------------------------------
  // 获取控制系统类型
  getDriveTypeApi: () => getAction('/mdc/mdcDriveTypeParamConfig/getDriveParamOptions'),
  // -------------------------------------车间看板页面--------------------------------------------
@@ -41,5 +40,12 @@
  // 删除设备参数阈值
  deleteParamThresholdApi: id => deleteAction('/mdc/mdcEquipmentThreshold/delete', { id }),
  // 删除设备参数阈值
  deleteBatchParamThresholdApi: ids => deleteAction('/mdc/mdcEquipmentThreshold/deleteBatch', { ids })
  deleteBatchParamThresholdApi: ids => deleteAction('/mdc/mdcEquipmentThreshold/deleteBatch', { ids }),
  // -------------------------------------OEE页面--------------------------------------------
  // 计算OEE
  computeOeeApi: params => postAction('/mdc/mdcOeeInfo/computeOee', params),
  // 计算MTBF
  computeMTBFApi: ({ month }) => postAction(`/mdc/mdcDownTime/computeMtbf?month=${month}`),
  // 计算MTTR
  computeMTTRApi: ({ month }) => postAction(`/mdc/mdcRepairInfo/computeMttr?month=${month}`)
}