From 4f0be3649b84a62b33cef348e43448a66af035ac Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 20 八月 2024 17:46:26 +0800
Subject: [PATCH] 平台合并单元格优化

---
 src/api/newpage.js |   56 ++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 48 insertions(+), 8 deletions(-)

diff --git a/src/api/newpage.js b/src/api/newpage.js
index d4de53b..70c4e00 100644
--- a/src/api/newpage.js
+++ b/src/api/newpage.js
@@ -1,17 +1,57 @@
-import request from '@/utils/request'
+import request from "@/utils/request";
 
 // 璁惧鏁版嵁
 export function getDeviceData() {
   return request({
-    url: '/dashboard/monitor',
-    method: 'get',
-  })
+    url: "/dashboard/monitor/total",
+    method: "get",
+  });
 }
 
 // 宸ュ崟鏁版嵁
 export function getWorkOrderData() {
   return request({
-    url: '/dashboard/workOrder',
-    method: 'get',
-  })
-}
\ No newline at end of file
+    url: "/dashboard/workOrder/total",
+    method: "get",
+  });
+}
+
+// 宸ュ崟鍦板尯
+export function getWorkOrderRegion() {
+  return request({
+    url: "/dashboard/workOrder/region",
+    method: "get",
+  });
+}
+
+//璁惧姝e父鐜�
+export function getNormalRate(id) {
+  return request({
+    url: "/dashboard/monitor/rate?dataScope=" + id,
+    method: "get",
+  });
+}
+
+//浜鸿劯鑰冩牳鏁版嵁
+export function checkFace(id) {
+  return request({
+    url: "/dashboard/check/face",
+    method: "get",
+  });
+}
+
+// 杞﹁締鑰冩牳鏁版嵁
+export function checkCar(id) {
+  return request({
+    url: "/dashboard/check/car",
+    method: "get",
+  });
+}
+
+// 瑙嗛鑰冩牳鏁版嵁
+export function checkVideo(id) {
+  return request({
+    url: "/dashboard/check/video",
+    method: "get",
+  });
+}

--
Gitblit v1.8.0