From 16eb67ab6b103663d30cad9ba74360f982e131cb Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 03 九月 2024 10:34:59 +0800 Subject: [PATCH] 自定义列显隐控制 --- src/api/newpage.js | 68 +++++++++++++++++++++++++++++----- 1 files changed, 58 insertions(+), 10 deletions(-) diff --git a/src/api/newpage.js b/src/api/newpage.js index d4de53b..37db17d 100644 --- a/src/api/newpage.js +++ b/src/api/newpage.js @@ -1,17 +1,65 @@ -import request from '@/utils/request' +import request from "@/utils/request"; + +// 鑾峰彇鍦板尯閮ㄩ棬 +export function getDepartmentData() { + return request({ + url: "/dashboard/department", + method: "get", + }); +} // 璁惧鏁版嵁 -export function getDeviceData() { +export function getDeviceData(dataScope, deptId) { return request({ - url: '/dashboard/monitor', - method: 'get', - }) + url: "/dashboard/monitor/total?dataScope=" + dataScope + "&deptId=" + deptId, + method: "get", + }); } // 宸ュ崟鏁版嵁 -export function getWorkOrderData() { +export function getWorkOrderData(dataScope, deptId) { return request({ - url: '/dashboard/workOrder', - method: 'get', - }) -} \ No newline at end of file + url: "/dashboard/workOrder/total?dataScope=" + dataScope + "&deptId=" + deptId, + method: "get", + }); +} + +// 宸ュ崟鍦板尯 +export function getWorkOrderRegion(dataScope, deptId) { + return request({ + url: "/dashboard/workOrder/region?dataScope=" + dataScope + "&deptId=" + deptId, + method: "get", + }); +} + +//璁惧姝e父鐜� +export function getNormalRate(dataScope, deptId) { + return request({ + url: "/dashboard/monitor/rate?dataScope=" + dataScope + "&deptId=" + deptId, + method: "get", + }); +} + +//浜鸿劯鑰冩牳鏁版嵁 +export function checkFace(dataScope, deptId) { + return request({ + url: "/dashboard/check/face?dataScope=" + dataScope + "&deptId=" + deptId, + method: "get", + }); +} + +// 杞﹁締鑰冩牳鏁版嵁 +export function checkCar(dataScope, deptId) { + return request({ + url: "/dashboard/check/car?dataScope=" + dataScope + "&deptId=" + deptId, + method: "get", + }); +} + +// 瑙嗛鑰冩牳鏁版嵁 +export function checkVideo(dataScope, deptId) { + return request({ + url: "/dashboard/check/video?dataScope=" + dataScope + "&deptId=" + deptId, + method: "get", + }); +} -- Gitblit v1.8.0