From 6126a611326ab36d765b15b66b07922c78e86b2b Mon Sep 17 00:00:00 2001
From: songguoqiang <765017469@qq.com>
Date: Thu, 7 Mar 2024 08:19:40 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/tjanalysis/index.ts | 5 +
src/utils/dict.ts | 5 +-
.../tjanalysis/energyconsumption/index.vue | 187 ++++++++++++++++++
src/views/tjanalysis/platscale/index.vue | 8 +-
4 files changed, 202 insertions(+), 3 deletions(-)
create mode 100644 src/views/tjanalysis/energyconsumption/index.vue
diff --git a/src/api/tjanalysis/index.ts b/src/api/tjanalysis/index.ts
index adfff23..bd444aa 100644
--- a/src/api/tjanalysis/index.ts
+++ b/src/api/tjanalysis/index.ts
@@ -124,4 +124,9 @@ export const querySizingmillDay = async (params) => {
// 导出热轧定经机日统计报表
export const exportSizingmillDay = async (params) => {
return await request.download({ url: `/tjanalysis/exportSizingmillDay`, params })
+}
+
+// 获取能耗统计报表
+export const queryEnergyConsumption = async (params) => {
+ return await request.get({ url: `/tjanalysis/queryEnergyConsumption`, params })
}
\ No newline at end of file
diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index f62e7a7..cdd5072 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -203,5 +203,8 @@ export enum DICT_TYPE {
LAB_USER_TEST_TYPE = 'test_user_type',
LAB_AUDIT_STATUS = 'lab_audit_status',
LAB_ASYNC_BUS_TYPE = 'lab_async_bus_type',
- LAB_OPR_TYPE = 'lab_opr_type'
+ LAB_OPR_TYPE = 'lab_opr_type',
+
+// ========== 统计报表能耗单位字典 ============
+ENERGY_CONSUMPTION_TYPE = 'energy_consumption_type'
}
diff --git a/src/views/tjanalysis/energyconsumption/index.vue b/src/views/tjanalysis/energyconsumption/index.vue
new file mode 100644
index 0000000..a609f9b
--- /dev/null
+++ b/src/views/tjanalysis/energyconsumption/index.vue
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+ 导出
+
+
+
+
+
+
+ {{names}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/tjanalysis/platscale/index.vue b/src/views/tjanalysis/platscale/index.vue
index 9686447..7572518 100644
--- a/src/views/tjanalysis/platscale/index.vue
+++ b/src/views/tjanalysis/platscale/index.vue
@@ -30,7 +30,7 @@
-
+
@@ -79,7 +79,11 @@ const resetQuery = async () => {
getList()
}
-const getList = async () => {
+const getList = async (page) => {
+ if(page){
+ queryParams.pageNo = page.page
+ queryParams.pageSize = page.limit
+ }
const res = await TjanalysisApi.queryTjPlatScales(queryParams)
if (res != null && res.list != null) {
dataList.dList = res.list