basicInfo.api.ts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. import { defHttp } from '/@/utils/http/axios';
  2. enum Api {
  3. // 矿山信息
  4. getMineData = '/ventanaly-province/province/mineData/getMineData',
  5. // 接入统计
  6. getGoafAccessCount = '/ventanaly-province/province/mineData/getGoafAccessCount',
  7. // 数据质量
  8. getDataQuaQueList = '/ventanaly-province/province/dataQuaQue/list',
  9. addDataQuaQue = '/ventanaly-province/province/dataQuaQue/add',
  10. deleteDataQuaQue = '/ventanaly-province/province/dataQuaQue/delete',
  11. editDataQuaQue = '/ventanaly-province/province/dataQuaQue/edit',
  12. // 密闭统计
  13. getClosedAccessCount = '/ventanaly-province/province/mineData/getZFCGoafAccessCount',
  14. getGoafQuestionReportList = '/ventanaly-province/province/goafQuestionReport/list',
  15. addGoafQuestionReport = '/ventanaly-province/province/goafQuestionReport/add',
  16. deleteGoafQuestionReport = '/ventanaly-province/province/goafQuestionReport/delete',
  17. editGoafQuestionReport = '/ventanaly-province/province/goafQuestionReport/edit',
  18. getGoafQuestionReport = '/ventanaly-province/province/goafQuestionReport/queryById',
  19. }
  20. // 矿山信息
  21. export const getMineData = (params) =>
  22. defHttp.post({
  23. headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
  24. url: Api.getMineData,
  25. params,
  26. });
  27. // 接入统计
  28. export const getGoafAccessCount = (params) =>
  29. defHttp.get({
  30. url: Api.getGoafAccessCount,
  31. params,
  32. });
  33. // 数据质量相关接口
  34. /**
  35. * 分页列表查询
  36. * @param params
  37. */
  38. export const getDataQuaQueList = (params) =>
  39. defHttp.get({
  40. headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
  41. url: Api.getDataQuaQueList,
  42. params,
  43. });
  44. /**
  45. * 新增质量问题
  46. * @param params
  47. */
  48. export const addDataQuaQue = (params) =>
  49. defHttp.post({
  50. url: Api.addDataQuaQue,
  51. params,
  52. });
  53. /**
  54. * 通过id删除质量问题
  55. * @param params
  56. */
  57. export const deleteDataQuaQue = (params) =>
  58. defHttp.delete({
  59. headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
  60. url: Api.deleteDataQuaQue,
  61. params,
  62. });
  63. /**
  64. * 编辑质量问题
  65. * @param params
  66. */
  67. export const editDataQuaQue = (params) =>
  68. defHttp.post({
  69. url: Api.editDataQuaQue,
  70. params,
  71. });
  72. // 密闭统计
  73. export const getClosedAccessCount = (params) =>
  74. defHttp.get({
  75. url: Api.getClosedAccessCount,
  76. params,
  77. });
  78. export const getGoafQuestionReportList = (params) =>
  79. defHttp.get({
  80. url: Api.getGoafQuestionReportList,
  81. params,
  82. });
  83. export const addGoafQuestionReport = (params) =>
  84. defHttp.post({
  85. url: Api.addGoafQuestionReport,
  86. params,
  87. });
  88. export const deleteGoafQuestionReport = (params) =>
  89. defHttp.delete({
  90. url: Api.deleteGoafQuestionReport,
  91. params,
  92. });
  93. export const editGoafQuestionReport = (params) =>
  94. defHttp.get({
  95. url: Api.editGoafQuestionReport,
  96. params,
  97. });
  98. export const getGoafQuestionReport = (params) =>
  99. defHttp.get({
  100. url: Api.getGoafQuestionReport,
  101. params,
  102. });