he wei
5 天以前 3c3576d5792bfabcef84979757ee344712e71cd3
src/api/station.js
@@ -77,6 +77,7 @@
  });
}
/**
 *  删除机房
 */
@@ -122,7 +123,7 @@
 */
export function getDevList(data) {
  return request({
    url: 'condition/getInfo',
    url: 'info/getInfo',
    method: 'POST',
    data
  });
@@ -199,6 +200,16 @@
}
/**
 * 获取标称容量(下拉)
 */
export function getMonCapByUid() {
  return request({
    url: 'condition/getMonCapByUid',
    method: 'GET'
  });
}
/**
 * 获取标称单体电压(下拉)
 */
export function getMonVol() {
@@ -213,7 +224,7 @@
 */
export function addDev(data) {
  return request({
    url: 'condition/addInfo',
    url: 'info/addInfo',
    method: 'POST',
    data
  });
@@ -224,9 +235,21 @@
 */
export function updateDev(data) {
  return request({
    url: 'condition/updateInfo',
    url: 'info/updateInfo',
    method: 'POST',
    data
  });
}
/**
 * 删除电池 设备 电源 机房
 */
export function delBatt(stationId, powerId, battgroupId) {
  return request({
    url: 'info/delBatt',
    method: 'GET',
    params: { stationId, powerId, battgroupId }
  });
}
@@ -235,8 +258,113 @@
 */
export function addBatt(data) {
  return request({
    url: 'condition/addBatt',
    url: 'info/addBatt',
    method: 'POST',
    data
  });
}
/**
 * 站点列表 树状
 */
export function getStationTree() {
  return request({
    url: 'stationInf/getLeftStation',
    method: 'GET'
  });
}
// ===================2025-06-04=====================
/**
 * 获取电池告警类型(下拉)
 */
export function getBattAlarmIdType() {
  return request({
    url: 'condition/getAlarmIdType',
    method: 'GET',
  });
}
/**
 * 获取电池组工作状态类型(下拉)
 */
export function getBattState() {
  return request({
    url: 'condition/getBattState',
    method: 'GET',
  });
}
/**
 * 获取设备告警类型(下拉)
 */
export function getDevAlmIdType() {
  return request({
    url: 'condition/getDevAlmIdType',
    method: 'GET',
  });
}
/**
 * 获取设备工作类型(下拉)
 */
export function getDevState() {
  return request({
    url: 'condition/getDevState',
    method: 'GET',
  });
}
/**
 * 获取电源告警类型(下拉)
 */
export function getPowerAlmIdType() {
  return request({
    url: 'condition/getPwrAlmIdType',
    method: 'GET',
  });
}
/**
 * 电池性能下拉
 */
export function getBattPerformance() {
  return request({
    url: 'condition/getCapperformance',
    method: 'GET',
  });
}
/**
 * 获取站点下的电池组(下拉)
 */
export function getBattByUid(params) {
  return request({
    url: 'condition/getBattByUid',
    method: 'GET',
    params
  });
}
/**
 * 获取所有的班组(下拉)
 */
export function getBattGroupBZ() {
  return request({
    url: 'condition/getBattGroupBZ',
    method: 'GET',
  });
}
/**
 * 获取电源性能(下拉)
 * condition/getPwrCapperformance
 */
export function getPwrCapperformance() {
  return request({
    url: 'condition/getPwrCapperformance',
    method: 'GET',
  });
}