deviceCfg.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. import request from '@/utils/request'
  2. import bmsRequest from '@/utils/bmsRequest'
  3. // 充电站 - 新增
  4. export function apiAddChargerGroup(data) {
  5. return request({
  6. url: '?r=chrpannel-group/add',
  7. method: 'post',
  8. data
  9. })
  10. }
  11. // 充电站 - 列表
  12. export function apiQueryChargerGroupList(data) {
  13. return request({
  14. url: '?r=chrpannel-group/list',
  15. method: 'post',
  16. data
  17. })
  18. }
  19. // 充电站 - 基本信息
  20. export function apiQueryChargerGroupInfo(data) {
  21. return request({
  22. url: '?r=chrpannel-group/info',
  23. method: 'post',
  24. data
  25. })
  26. }
  27. // 充电站 - 编辑
  28. export function apiChargerGroupEdit(data) {
  29. return request({
  30. url: '?r=chrpannel-group/edit',
  31. method: 'post',
  32. data
  33. })
  34. }
  35. // 充电站 - 详情
  36. export function apiQueryChargerGroupDetail(data) {
  37. return request({
  38. url: '?r=chrpannel-group/detail',
  39. method: 'post',
  40. data
  41. })
  42. }
  43. // 充电桩:批量禁用/启用端口
  44. export function apiBatchOperatePort(data) {
  45. return request({
  46. url: '?r=chrpannel/batch-operate-port',
  47. method: 'post',
  48. data
  49. })
  50. }
  51. // 充电桩列表
  52. export function apiQueryChargerPilesList(params) {
  53. return request({
  54. url: '?r=chrpannel/list',
  55. method: 'get',
  56. params
  57. })
  58. }
  59. // 充电桩详情
  60. export function apiQueryChargerPilesDtl(data) {
  61. return request({
  62. url: '?r=chrpannel/detail',
  63. method: 'post',
  64. data
  65. })
  66. }
  67. // 新增充电桩
  68. export function apiAddChargerPiles(data) {
  69. return request({
  70. url: '?r=chrpannel/add',
  71. method: 'post',
  72. data
  73. })
  74. }
  75. // 编辑充电桩
  76. export function apiEditChargerPiles(data) {
  77. return request({
  78. url: '?r=chrpannel/edit',
  79. method: 'post',
  80. data
  81. })
  82. }
  83. // 充电桩基本信息
  84. export function apiQueryChargingPiles(data) {
  85. return request({
  86. url: '?r=chrpannel/info',
  87. method: 'post',
  88. data
  89. })
  90. }
  91. // 设备类型
  92. export function apiQueryDeviceTypes(data) {
  93. return request({
  94. url: '?r=chrpannel/third-device-type-list',
  95. method: 'post',
  96. data
  97. })
  98. }
  99. // 设备类型
  100. export function apiQuerySimTypeList(data) {
  101. return bmsRequest({
  102. url: '/sim/sim-type-list',
  103. method: 'get',
  104. data
  105. })
  106. }
  107. // 批量重启充电桩
  108. export function apiBatchRestart(data) {
  109. return request({
  110. url: '?r=chrpannel/batch-restart',
  111. method: 'post',
  112. data
  113. })
  114. }
  115. // 充电站 - 刷新搜索充电桩数据
  116. export function apiSearchRefreshChargerGroup(data) {
  117. return request({
  118. url: '?r=chrpannel-group/search-refresh-chrpannel',
  119. method: 'post',
  120. data
  121. })
  122. }
  123. // 充电桩批量转移
  124. export function apiBatchChrpannelTransfer(data) {
  125. return request({
  126. url: '?r=chrpannel/transfer',
  127. method: 'post',
  128. data
  129. })
  130. }
  131. // 根据id集合查询列表
  132. export function apiQueryChrpannelBydevId(data) {
  133. return request({
  134. url: '?r=chrpannel/list-by-dev-id-list',
  135. method: 'post',
  136. data
  137. })
  138. }
  139. // 刷新二维码
  140. export function apiRefreshQrCode(data) {
  141. return request({
  142. url: '?r=chrpannel/refresh-common-code',
  143. method: 'post',
  144. data
  145. })
  146. }