From a6842851a844e63a8766d63c5410a8e2f27a7d45 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期二, 20 八月 2024 11:56:30 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- 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