grgw_vue_2025/src/views/heating/yunwei/Heatanalysis.api.ts

41 lines
1.1 KiB
TypeScript
Raw Normal View History

2025-09-04 14:51:16 +08:00
import {defHttp} from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";
const { createConfirm } = useMessage();
enum Api {
2025-09-04 17:47:14 +08:00
list = '/heating/heatanalysis/yunweiPage',
2025-09-04 14:51:16 +08:00
edit='/heating/heatanalysis/updateFaultLevel',
companylist = '/heating/thermalcompany/list',
heatsourcelist = '/heating/heatsource/list',
heatsourcestationlist = '/heating/heatsourcestation/list',
2025-10-31 17:05:54 +08:00
exportXls = '/heating/heatanalysis/exportYunweiXls',
2025-09-04 14:51:16 +08:00
}
2025-10-31 17:05:54 +08:00
/**
* api
* @param params
*/
export const getExportUrl = Api.exportXls;
2025-09-04 14:51:16 +08:00
/**
*
* @param params
*/
export const list = (params) =>
defHttp.get({url: Api.list, params});
export const companylist = (params) =>
defHttp.get({url: Api.companylist, params});
export const heatsourcelist = (params) =>
defHttp.get({url: Api.heatsourcelist, params});
export const heatsourcestationlist = (params) =>
defHttp.get({url: Api.heatsourcestationlist, params});
/**
*
* @param params
*/
export const saveOrUpdate = (params) => {
return defHttp.post({url: Api.edit, params},{ isTransformResponse: false });
}