From 639700c4bffa084dfe1822746f20449b50c53fa4 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期二, 20 八月 2024 16:57:55 +0800
Subject: [PATCH] feat:运行监控展示
---
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