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 }), // -------------------------------------总控车间看板页面-------------------------------------------- // 获取昨日概况 getYesterdayOverviewApi: () => getAction('/mdc/largeScreen/yesterdayOverview'), // 获取今日生产进度 getTodayProductionProgressApi: () => getAction('/mdc/largeScreen/todayProductionSchedule'), // 获取今日产品合格率 getTodayProductPassRateApi: () => getAction('/mdc/largeScreen/todayProductionPassRate'), // 获取今日班组完成量 getTeamCompletionCountApi: () => getAction('/mdc/largeScreen/todayClazzCompletionCount'), // 获取今日设备工作效率 getTodayEquipmentWorkEfficiencyApi: () => getAction('/mdc/largeScreen/todayEquipmentRate'), // 获取月设备利用率 getMonthEquipmentUtilizationRateApi: () => getAction('/mdc/largeScreen/monthEquipmentUtilizationRate'), // 获取产线列表 getProductionLineListApi: () => getAction('/mdc/largeScreen/productionList'), // -------------------------------------分控车间看板页面-------------------------------------------- // 获取设备状态 getEquipmentStatusApi: productionId => getAction('/mdc/subLargeScreen/equipmentStatus', { productionId }), // 获取当日生产进度 getTodayProductionPlanApi: productionId => getAction('/mdc/subLargeScreen/todayProductionProgress', { productionId }), // 获取刀具寿命列表 getToolLifeListApi: productionId => getAction('/mdc/subLargeScreen/toolLifeList', { productionId }) }