From 0ae255185f422781f8a5cc4c52ad56ee0d3a1e6e Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期五, 29 十一月 2024 19:07:15 +0800
Subject: [PATCH] 1.首页可拖拽 2.没有名字去掉悬浮层 3.增加了背景

---
 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