From 58ccb8697df264a679f9947920a4ce1cfa575d6c Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期三, 15 五月 2024 16:52:51 +0800 Subject: [PATCH] # --- src/api/report/index.js | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/src/api/report/index.js b/src/api/report/index.js index 005f8c2..ca69eef 100644 --- a/src/api/report/index.js +++ b/src/api/report/index.js @@ -6,4 +6,28 @@ return res.data.data; } return Promise.reject(new Error(res.data.msg)); +} + +export async function getLocCharts(_params) { + const res = await request.get('/digital/charts/loccharts', _params); + if (res.data.code === 200) { + return res.data.data; + } + return Promise.reject(new Error(res.data.msg)); +} + +export async function getTaskCharts(_params) { + const res = await request.get('/digital/charts/taskcharts', _params); + if (res.data.code === 200) { + return res.data.data; + } + return Promise.reject(new Error(res.data.msg)); +} + +export async function getInout(_params) { + const res = await request.get('/digital/charts/inout', _params); + if (res.data.code === 200) { + return res.data.data; + } + return Promise.reject(new Error(res.data.msg)); } \ No newline at end of file -- Gitblit v1.9.1