fuliqi
2024-08-20 a6842851a844e63a8766d63c5410a8e2f27a7d45
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',
  })
}
    url: "/dashboard/workOrder/total",
    method: "get",
  });
}
// 工单地区
export function getWorkOrderRegion() {
  return request({
    url: "/dashboard/workOrder/region",
    method: "get",
  });
}
//设备正常率
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",
  });
}