From 694cb0f83ace00a67ca4ae0e98422088d330fbe2 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期五, 29 十一月 2024 10:52:39 +0800
Subject: [PATCH] fix:1129
---
src/api/area.js | 76 ++++++++++++++++++++++++++++++++++++++
1 files changed, 76 insertions(+), 0 deletions(-)
diff --git a/src/api/area.js b/src/api/area.js
index 6e005c1..1a00ea9 100644
--- a/src/api/area.js
+++ b/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
+ }
+ })
}
\ No newline at end of file
--
Gitblit v1.9.3