import { defHttp } from '/@/utils/http/axios'; enum Api { addList = '/ventanaly-device/safety/rdl/add', addBatchList = '/ventanaly-device/safety/rdl/addBatch', deleteById = '/ventanaly-device/safety/rdl/delete', deleteBatch = '/ventanaly-device/safety/rdl/deleteBatch', editList = '/ventanaly-device/safety/rdl/edit', getList = '/ventanaly-device/safety/rdl/list', queryById = '/ventanaly-device/safety/rdl/queryById', autoLinkReg = '/ventanaly-device/safety/rdl/autoMonitorLinkReg', getRegDataList = '/modelreq/safety/ventanalyShowColum/list', } /** * 新增规程关联表 * @param params */ export const addList = (params) => defHttp.post({ url: Api.addList, params }); /** * 批量新增规程关联表 * @param params */ export const addBatchList = (params) => defHttp.post({ url: Api.addBatchList, params }); /** * 删除规程关联表 * @param params */ export const deleteById = (params) => defHttp.delete({ headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, url: Api.deleteById, params }); /** * 批量删除规程关联表 * @param params */ export const deleteBatch = (params) => defHttp.delete({ headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, url: Api.deleteBatch, params }); /** * 编辑规程关联表 * @param params */ export const editList = (params) => defHttp.post({ url: Api.editList, params }); /** * 规程关联表-分页列表查询 * @param params */ export const getList = (params) => defHttp.get({ headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, url: Api.getList, params, }); /** * 规程关联表-通过id查询 * @param params */ export const queryById = (params) => defHttp.get({ headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, url: Api.queryById, params }); /** * 自动关联规程关联表 * @param params */ export const autoLinkReg = (params) => defHttp.post({ url: Api.autoLinkReg, params }); /** * 获取设备类型及页面类型下数据 * @param params */ export const getRegDataList = (params) => defHttp.get({ url: Api.getRegDataList, params });