| | |
| | | import request from "@/utils/request"; |
| | | |
| | | // 设备数据 |
| | | export function getDeviceData() { |
| | | // 获取地区部门 |
| | | export function getDepartmentData() { |
| | | return request({ |
| | | url: "/dashboard/monitor/total", |
| | | url: "/dashboard/department", |
| | | method: "get", |
| | | }); |
| | | } |
| | | |
| | | // 设备数据 |
| | | export function getDeviceData(dataScope, deptId) { |
| | | return request({ |
| | | url: "/dashboard/monitor/total?dataScope=" + dataScope + "&deptId=" + deptId, |
| | | method: "get", |
| | | }); |
| | | } |
| | | |
| | | // 工单数据 |
| | | export function getWorkOrderData() { |
| | | export function getWorkOrderData(dataScope, deptId) { |
| | | return request({ |
| | | url: "/dashboard/workOrder/total", |
| | | url: "/dashboard/workOrder/total?dataScope=" + dataScope + "&deptId=" + deptId, |
| | | method: "get", |
| | | }); |
| | | } |
| | | |
| | | // 工单地区 |
| | | export function getWorkOrderRegion() { |
| | | export function getWorkOrderRegion(dataScope, deptId) { |
| | | return request({ |
| | | url: "/dashboard/workOrder/region", |
| | | url: "/dashboard/workOrder/region?dataScope=" + dataScope + "&deptId=" + deptId, |
| | | method: "get", |
| | | }); |
| | | } |
| | | |
| | | //设备正常率 |
| | | export function getNormalRate(id) { |
| | | export function getNormalRate(dataScope, deptId) { |
| | | return request({ |
| | | url: "/dashboard/monitor/rate?dataScope=" + id, |
| | | url: "/dashboard/monitor/rate?dataScope=" + dataScope + "&deptId=" + deptId, |
| | | method: "get", |
| | | }); |
| | | } |
| | | |
| | | //人脸考核数据 |
| | | export function checkFace(id) { |
| | | export function checkFace(dataScope, deptId) { |
| | | return request({ |
| | | url: "/dashboard/check/face", |
| | | url: "/dashboard/check/face?dataScope=" + dataScope + "&deptId=" + deptId, |
| | | method: "get", |
| | | }); |
| | | } |
| | | |
| | | // 车辆考核数据 |
| | | export function checkCar(id) { |
| | | export function checkCar(dataScope, deptId) { |
| | | return request({ |
| | | url: "/dashboard/check/car", |
| | | url: "/dashboard/check/car?dataScope=" + dataScope + "&deptId=" + deptId, |
| | | method: "get", |
| | | }); |
| | | } |
| | | |
| | | // 视频考核数据 |
| | | export function checkVideo(id) { |
| | | export function checkVideo(dataScope, deptId) { |
| | | return request({ |
| | | url: "/dashboard/check/video", |
| | | url: "/dashboard/check/video?dataScope=" + dataScope + "&deptId=" + deptId, |
| | | method: "get", |
| | | }); |
| | | } |