From d36bac3029c9ff3ea53da4b95618a4b19f855450 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Tue, 01 Apr 2025 13:09:12 +0800
Subject: [PATCH] feat: 事件概况对接
---
src/api/home/index.js | 44 ++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 42 insertions(+), 2 deletions(-)
diff --git a/src/api/home/index.js b/src/api/home/index.js
index 318eb8e..889838d 100644
--- a/src/api/home/index.js
+++ b/src/api/home/index.js
@@ -9,17 +9,57 @@
};
// 巡检任务item数量
-export const getJobStatistics = () => {
+export const getJobStatistics = (data) => {
return request({
url: '/drone-device-core/wayline/waylineJobInfo/jobStatistics',
method: 'post',
+ data
});
};
// 巡检任务柱状图数据
-export const getJobNumBar = () => {
+export const getJobNumBar = (data) => {
return request({
url: '/drone-device-core/wayline/waylineJobInfo/jobNumBar',
method: 'post',
+ data
+ });
+};
+// 事件概况总数
+export const getJobEventTotal = () => {
+ return request({
+ url: '/drone-device-core/jobEvent/total',
+ method: 'get',
+ });
+};
+// 事件概况分类数
+export const getJobEventByStatus = (data) => {
+ return request({
+ url: '/drone-device-core/jobEvent/eventByStatus',
+ method: 'post',
+ data
+ });
+};
+export const getJobEventBrokerLine = (data) => {
+ return request({
+ url: '/drone-device-core/jobEvent/eventBrokerLine',
+ method: 'post',
+ data
+ });
+};
+
+// 任务成果
+export const getMediaFileCountBy = () => {
+ return request({
+ url: 'blade-resource/media/api/v1/workspaces/files/getMediaFileCountBy',
+ method: 'get',
+ });
+};
+
+// 降本增效
+export const optimizeCostEfficiency = () => {
+ return request({
+ url: 'drone-device-core/manage/api/v1/devices/optimizeCostEfficiency',
+ method: 'get',
});
};
--
Gitblit v1.9.3