import { defHttp } from '@/utils/http/axios'; enum Api { getDustWarningCntByType='/dust/dustDisasterApi/getDustWarningCntByType', getAreaTypeList = '/dust/dustDisasterApi/getAreaTypeList', getRealSensorDataByType = '/dust/dustDisasterApi/getRealSensorDataByType', getDustInfos = '/dust/dustDisasterApi/getDustInfos', historyAndForecast = '/dust/dustDisasterApi/historyAndForecast', realData = '/fire/show/realData', getGzmMaxBySensorType='/dust/dustDisasterApi/getGzmMaxBySensorType', dustCoalSeam='/dust/dustDisasterApi/dustCoalSeam' } /** * 粉尘工作面监测图表数据 * @param params */ export const getDustWarningCntByType = (params) => defHttp.get({ url: Api.getDustWarningCntByType,params }); /** * 粉尘菜单树 * @param params */ export const getAreaTypeList = () => defHttp.get({ url: Api.getAreaTypeList }); /** * 粉尘选项 * @param params */ export const getRealSensorDataByType = (params) => defHttp.get({ url: Api.getRealSensorDataByType, params }); /** * 获取粉尘单项数据 * @param params */ export const getDustInfos = (params) => defHttp.get({ url: Api.getDustInfos, params }); /** * 获取粉尘图表数据 * @param params */ export const historyAndForecast = (params) => defHttp.get({ url: Api.historyAndForecast, params }); /** * 智能喷雾降尘装置数据 * @param params */ export const realData = (params) => defHttp.post({ url: Api.realData, params }); /** * 粉尘关联指标数据 * @param params */ export const getGzmMaxBySensorType = () => defHttp.get({ url: Api.getGzmMaxBySensorType, }); /** * 粉尘静态指标下拉选项数据 * @param params */ export const dustCoalSeam = () => defHttp.get({ url: Api.dustCoalSeam, });