xiangpei
2024-08-15 e24b649d64849e87f79303f3f2284291ee3507af
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import request from "@/utils/request";
 
// 设备数据
export function getDeviceData() {
  return request({
    url: "/dashboard/monitor/total",
    method: "get",
  });
}
 
// 工单数据
export function getWorkOrderData() {
  return request({
    url: "/dashboard/workOrder/total",
    method: "get",
  });
}
 
//设备正常率
export function getNormalRate(id) {
  return request({
    url: "/dashboard/monitor/rate?dataScope=" + id,
    method: "get",
  });
}