From 6dde5ccbc8e56b67b6ad83d52ff48012265cd3e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E6=B4=81?= <209192278@qq.com> Date: Thu, 28 Dec 2023 23:00:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=93=E6=B4=81:=20=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/largeScreen.js | 7 + src/api/tunnelManage.js | 5 +- src/assets/styles/index.scss | 5 + src/components/content/fanInfo/FanInfo.vue | 164 +++++++++++++++++- .../content/windPressure/WindPressureList.vue | 3 +- src/router/index.js | 8 +- src/views/device-manage/index.vue | 50 ++++-- src/views/edit/edit.vue | 5 +- src/views/site/index.vue | 19 +- src/views/tunnel-manage/index.vue | 113 +++++------- src/views/tunnel/index.vue | 6 +- 11 files changed, 274 insertions(+), 111 deletions(-) diff --git a/src/api/largeScreen.js b/src/api/largeScreen.js index 4747a04..b83c3f7 100644 --- a/src/api/largeScreen.js +++ b/src/api/largeScreen.js @@ -35,3 +35,10 @@ export const getBadGasEchartsInfo = (tunnelId) => { method: 'get' }) } +//电流监控数据 +export const getFanEchartsInfo = (equipmentId) => { + return request({ + url: `/tunnel/large/screen/echarts/current/${equipmentId}`, + method: 'get' + }) +} diff --git a/src/api/tunnelManage.js b/src/api/tunnelManage.js index 19a6c05..35160d3 100644 --- a/src/api/tunnelManage.js +++ b/src/api/tunnelManage.js @@ -10,10 +10,7 @@ export const getTunnelList = (params) => { export const getTunnelDetail = (tunnelId) => { return request({ url: `/tunnel/tunnel/${tunnelId}`, - method: 'get', - params:{ - tunnelId:tunnelId - } + method: 'get' }) } export const addTunnel = (data) => { diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index a1f808e..f98121e 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -298,6 +298,11 @@ body, height: 1160px; //width: 1300px; } + #containerFan { + flex: 1; + height: 1160px; + //width: 1300px; + } #containerBad { flex: 1; diff --git a/src/components/content/fanInfo/FanInfo.vue b/src/components/content/fanInfo/FanInfo.vue index 5341993..dd2f660 100644 --- a/src/components/content/fanInfo/FanInfo.vue +++ b/src/components/content/fanInfo/FanInfo.vue @@ -64,17 +64,38 @@ -
- +
+
+
+ +
+
+
+
+
+
+ + + + + + + +
+
+
+