From e00d51e981e4cc048c78067b6c47de5c3c86e224 Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Thu, 7 Mar 2024 10:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tjanalysis/index.ts | 5 +++ src/views/tjanalysis/electricdata/index.vue | 7 ++-- .../tjanalysis/energyconsumption/index.vue | 33 ++++++++++++------- src/views/tjanalysis/irealdatatotal/index.vue | 9 +++-- 4 files changed, 38 insertions(+), 16 deletions(-) diff --git a/src/api/tjanalysis/index.ts b/src/api/tjanalysis/index.ts index bd444aa..38beeb1 100644 --- a/src/api/tjanalysis/index.ts +++ b/src/api/tjanalysis/index.ts @@ -129,4 +129,9 @@ export const exportSizingmillDay = async (params) => { // 获取能耗统计报表 export const queryEnergyConsumption = async (params) => { return await request.get({ url: `/tjanalysis/queryEnergyConsumption`, params }) +} + +// 导出能耗统计报表 +export const exportEnergyConsumption = async (params) => { + return await request.download({ url: `/tjanalysis/exportEnergyConsumption`, params }) } \ No newline at end of file diff --git a/src/views/tjanalysis/electricdata/index.vue b/src/views/tjanalysis/electricdata/index.vue index 7416bc3..3887314 100644 --- a/src/views/tjanalysis/electricdata/index.vue +++ b/src/views/tjanalysis/electricdata/index.vue @@ -1,6 +1,6 @@