errorReason.ts
676 Bytes
import { defHttp } from '/@/utils/http/axios';
import {omit} from "lodash-es";
/**
* 获取列表
*/
export const getEquipmentErrorList = (params) => {
const { page, pageSize } = params;
const otherParams = omit(params, ['page', 'pageSize']);
return defHttp.post<any>({
url: `/mr/pageData?page=${page}&pageSize=${pageSize}`,
params: otherParams,
});
};
/**
* 新增故障
*/
export const equipmentErrorCategory = (params) => {
return defHttp.post<any>({
url: `/mr/save`,
params,
});
};
/**
* 删除产品分类
*/
export const deleteEquipmentError = (params) => {
return defHttp.post<any>({
url: `/mr/delete`,
params,
});
};