import { defHttp } from '/@/utils/http/axios'; enum Api { list = '/monitor/device', baseList = '/safety/ventanalyDeviceInfo/list', // deviceTypeList = '/safety/ventanalyDeviceInfo/DeviceKind/query', // deviceTypeList = '/sys/dict/DeviceKind/queryBySystem', deviceTypeList = '/safety/ventanalyDeviceInfo/DeviceKind/queryBySystem', itemList = '/sys/dictItem/list', devPosition = '/sys/dict/getDictItems/devPosVisible', getDepartmentInfo = '/monitor/getDepartmentInfo', listdays = '/safety/ventanalyMonitorData/listdays', getHistoryData = '/monitor/history/getHistoryData', safetyDeviceList = '/monitor/codeDict', exportXlsUrl = '/monitor/exportXls', queryNowGasInsInfo = '/safety/gasDayReport/queryNowGasInsInfo', //查询当前各班瓦斯巡检信息 queryNowGasSta = '/safety/gasDayReport/queryNowGasSta', queryReportData = '/safety/reportLocalData/queryReportData', //查询瓦斯日报列表 getDeviceListBySubId = '/safety/ventanalyDeviceInfo/getDeviceListBySubId', //查询分站 } //分站全部列表 export const getListAll = () => defHttp.post({ url: Api.getDeviceListBySubId }); /** * 列表接口 * @param params */ export const list = (params) => defHttp.post({ url: Api.list, params }); /** * 保存或者更新用户 * @param params */ export const getDeviceList = (params) => defHttp.get({ url: Api.baseList, params }); export const getDeviceTypeList = (params) => defHttp.get({ url: Api.deviceTypeList, params }); export const itemList = (params) => defHttp.get({ url: Api.itemList, params }); export const devPosition = (params) => defHttp.get({ url: Api.devPosition, params }); export const getDepartmentInfo = (params) => defHttp.get({ url: Api.getDepartmentInfo, params }); export const listdays = (params) => defHttp.get({ url: Api.listdays, params }); export const getHistoryData = (params) => defHttp.post({ url: Api.getHistoryData, params }); export const safetyDeviceList = (params) => defHttp.post({ url: Api.safetyDeviceList, params }); export const queryNowGasInsInfo = (params) => defHttp.post({ url: Api.queryNowGasInsInfo, params }); export const getExportUrl = Api.exportXlsUrl; /** * 列表接口 * @param params */ export const queryNowGasSta = (params) => defHttp.post({ url: Api.queryNowGasSta, params }); /** * 瓦斯日报列表 * @param params */ export const queryReportData = (params) => defHttp.post({ url: Api.queryReportData, params });