internalManager.api.ts 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import { defHttp } from '/@/utils/http/axios';
  2. enum Api {
  3. addList = '/ventanaly-device/safety/rdl/add',
  4. addBatchList = '/ventanaly-device/safety/rdl/addBatch',
  5. deleteById = '/ventanaly-device/safety/rdl/delete',
  6. deleteBatch = '/ventanaly-device/safety/rdl/deleteBatch',
  7. editList = '/ventanaly-device/safety/rdl/edit',
  8. getList = '/ventanaly-device/safety/rdl/list',
  9. queryById = '/ventanaly-device/safety/rdl/queryById',
  10. autoLinkReg = '/ventanaly-device/safety/rdl/autoMonitorLinkReg',
  11. getRegDataList = '/modelreq/safety/ventanalyShowColum/list',
  12. }
  13. /**
  14. * 新增规程关联表
  15. * @param params
  16. */
  17. export const addList = (params) => defHttp.post({ url: Api.addList, params });
  18. /**
  19. * 批量新增规程关联表
  20. * @param params
  21. */
  22. export const addBatchList = (params) => defHttp.post({ url: Api.addBatchList, params });
  23. /**
  24. * 删除规程关联表
  25. * @param params
  26. */
  27. export const deleteById = (params) =>
  28. defHttp.delete({ headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, url: Api.deleteById, params });
  29. /**
  30. * 批量删除规程关联表
  31. * @param params
  32. */
  33. export const deleteBatch = (params) =>
  34. defHttp.delete({ headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, url: Api.deleteBatch, params });
  35. /**
  36. * 编辑规程关联表
  37. * @param params
  38. */
  39. export const editList = (params) => defHttp.post({ url: Api.editList, params });
  40. /**
  41. * 规程关联表-分页列表查询
  42. * @param params
  43. */
  44. export const getList = (params) =>
  45. defHttp.get({
  46. headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
  47. url: Api.getList,
  48. params,
  49. });
  50. /**
  51. * 规程关联表-通过id查询
  52. * @param params
  53. */
  54. export const queryById = (params) => defHttp.get({ headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, url: Api.queryById, params });
  55. /**
  56. * 自动关联规程关联表
  57. * @param params
  58. */
  59. export const autoLinkReg = (params) => defHttp.post({ url: Api.autoLinkReg, params });
  60. /**
  61. * 获取设备类型及页面类型下数据
  62. * @param params
  63. */
  64. export const getRegDataList = (params) => defHttp.get({ url: Api.getRegDataList, params });