From 99d89d6a2b468479b8bf322e9f46cc09bf7d0db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E6=B4=81?= <209192278@qq.com> Date: Sun, 21 Jan 2024 23:13:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=93=E6=B4=81:=20=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=8F=8A=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/largeScreen.js | 24 +++ src/components/content/airInfo/AirInfo.vue | 3 +- src/components/content/fanInfo/FanInfo.vue | 168 ++++++++++++++++----- src/views/edit/edit.vue | 12 +- src/views/tunnel-manage/index.vue | 12 +- src/views/tunnel/index.vue | 18 +-- 6 files changed, 184 insertions(+), 53 deletions(-) diff --git a/src/api/largeScreen.js b/src/api/largeScreen.js index b83c3f7..45c92b0 100644 --- a/src/api/largeScreen.js +++ b/src/api/largeScreen.js @@ -42,3 +42,27 @@ export const getFanEchartsInfo = (equipmentId) => { method: 'get' }) } +//风机频率修改 +export const editFrequency = (data) => { + return request({ + url: '/tunnel/large/screen/frequency', + method: 'put', + data + }) +} +//风机运行模式切换 +export const editFrequencyModelSwitch = (data) => { + return request({ + url: '/tunnel/large/screen/model/switch', + method: 'post', + data + }) +} +//风机开关切换 +export const editFrequencyOperationSwitch = (data) => { + return request({ + url: '/tunnel/large/screen/operation/switch', + method: 'post', + data + }) +} diff --git a/src/components/content/airInfo/AirInfo.vue b/src/components/content/airInfo/AirInfo.vue index ead7cf5..300de33 100644 --- a/src/components/content/airInfo/AirInfo.vue +++ b/src/components/content/airInfo/AirInfo.vue @@ -238,8 +238,7 @@ const initChart = (type, values) => { let content = `
${params[0].name}
-
进风口: ${params[0].value}
-
出风口: ${params[1].value}
+
${params[0].value}
`; return content; }, diff --git a/src/components/content/fanInfo/FanInfo.vue b/src/components/content/fanInfo/FanInfo.vue index 5268939..d904d17 100644 --- a/src/components/content/fanInfo/FanInfo.vue +++ b/src/components/content/fanInfo/FanInfo.vue @@ -24,14 +24,14 @@
启动
停止
@@ -39,20 +39,27 @@
- + 自动 手动
- 当前功率 - + 给定频率 + + + + + + + + + + +
@@ -108,10 +115,16 @@