From cbe714cf3c16c2c6d39ac62ff9d30ed99771bdfd Mon Sep 17 00:00:00 2001 From: 黄何裕 <1053952480@qq.com> Date: 星期四, 08 八月 2024 16:11:19 +0800 Subject: [PATCH] 最终章 --- src/api/newpage.js | 24 ++++++++++++++++-------- 1 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/api/newpage.js b/src/api/newpage.js index d4de53b..29a2767 100644 --- a/src/api/newpage.js +++ b/src/api/newpage.js @@ -1,17 +1,25 @@ -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", + }); +} + +//璁惧姝e父鐜� +export function getNormalRate(id) { + return request({ + url: "/dashboard/monitor/rate?dataScope=" + id, + method: "get", + }); +} -- Gitblit v1.8.0