From 9afde77c00563bb962912942cb8c5bfa74f67d91 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Wed, 28 Feb 2024 22:18:55 +0800 Subject: [PATCH] =?UTF-8?q?feat=20:=20=E5=AF=B9=E6=8E=A5=E7=94=A8=E7=94=B5?= =?UTF-8?q?=E9=87=8F/=E7=9C=81=E7=94=B5=E9=87=8F=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=8F=8A=E6=96=B0=E5=A2=9E=E7=94=A8=E7=94=B5=E9=87=8Fecharts?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/largeScreen.js | 12 + src/assets/styles/index.scss | 7 +- src/components/chooseMonth/index.vue | 14 +- src/components/chooseTime/index.vue | 14 +- src/components/content/airInfo/AirInfo.vue | 21 +- .../content/badGasInfo/BadGasInfo.vue | 21 +- src/components/content/fanInfo/FanInfo.vue | 25 +- src/components/content/usedEle/UsedEle.vue | 366 ++++++++++++++---- .../content/windPressure/WindPressureList.vue | 20 +- 9 files changed, 378 insertions(+), 122 deletions(-) diff --git a/src/api/largeScreen.js b/src/api/largeScreen.js index 3da056b..9b89675 100644 --- a/src/api/largeScreen.js +++ b/src/api/largeScreen.js @@ -57,6 +57,18 @@ export const getFanEchartsInfo = (id,time,type) => { } }) } +//用电量echarts +export const getEleEchartsInfo = (id,time,type) => { + return request({ + url: '/tunnel/large/screen/echarts/electricity/consumption', + method: 'get', + params: { + id: id, + time: time, + type: type + } + }) +} //风机频率修改 export const editFrequency = (data) => { return request({ diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 96c0ac8..d6ad6dd 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -336,7 +336,7 @@ body, #containerEle { flex: 1; - height: 1060px; + height: 1010px; //width: 2180px; } @@ -462,8 +462,11 @@ body, //用电量 .top-tag { + position: absolute; + top: 46px; + left: 516px; display: flex; - justify-content: center; + //justify-content: center; .allUsedEle { width: 300px; diff --git a/src/components/chooseMonth/index.vue b/src/components/chooseMonth/index.vue index eb78122..011bf61 100644 --- a/src/components/chooseMonth/index.vue +++ b/src/components/chooseMonth/index.vue @@ -14,13 +14,7 @@