1
陶杰
2024-11-25 bbfcba8c21dadac21e1aaea809073771b10b5cc5
src/api/area.js
@@ -149,4 +149,80 @@
      'areaCode': code
    }
  })
}
export function getSwitchCabinetInfo() {
  return request({
    url: '/api/services/app/SwitchDevice/GetSwitchCabinetInfo',
    method: 'get',
    params: {
    }
  })
}
/**
 *
 * @returns 获取所有交换机柜列表
 */
export function getSwitchBord() {
  return request({
    url: '/api/services/app/SwitchDevice/GetSwitchBord',
    method: 'get',
    params: {
    }
  })
}
/**
 *
 * @returns 获取所有交换机列表
 */
export function getAllSwitch() {
  return request({
    url: '/api/services/app/SwitchDevice/GetAllSwitch',
    method: 'get',
    params: {
    }
  })
}
/**
 * 获取所有区域列表
 */
export function getAreaCode() {
  return request({
    url: '/api/services/app/SwitchDevice/GetAreaCode',
    method: 'get',
    params: {
    }
  })
}
export function AssignSwitch(dto) {
  return request({
    url: '/api/services/app/SwitchDevice/AssignSwitch',
    method: 'post',
    data: {
      ...dto
    }
  })
}
/**
 * 根据区域查找背景图和当前数量
 */
export function getAreaModuleBycode(code) {
  return request({
    url: '/api/services/app/SwitchDevice/GetAreaModuleBycode',
    method: 'get',
    params: {
      'areaCode': code
    }
  })
}