From 1e5ce6ede2ed11669f7ee5fb4d2212439e5d89f3 Mon Sep 17 00:00:00 2001
From: clay <20932067@zju.edu.cn>
Date: Thu, 14 Mar 2024 14:51:02 +0800
Subject: [PATCH] =?UTF-8?q?fix=20:=20=E9=A3=8E=E6=9C=BA=E6=8E=A7=E5=88=B6?=
=?UTF-8?q?=E7=8A=B6=E6=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/content/fanInfo/FanInfo.vue | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/components/content/fanInfo/FanInfo.vue b/src/components/content/fanInfo/FanInfo.vue
index 72a5d65..21b337c 100644
--- a/src/components/content/fanInfo/FanInfo.vue
+++ b/src/components/content/fanInfo/FanInfo.vue
@@ -22,14 +22,14 @@
启动
停止
@@ -334,18 +334,18 @@ const packageData = (item, type, flag) => {
} else {
return {
number: number,
- state: type === true ? 0 : 1,
+ state: type === true ? 1 : 0,
tunnelId: props.tunnelId,
}
}
}
//启动/停止
-const editOperate = (item, type) => {
+const editOperate = (item, flag, type) => {
ElMessageBox.confirm(`确认${type}${changeNum(item)}号风机吗?`, '系统提示', {
type: 'warning',
closeOnClickModal: false
}).then(() => {
- const data = packageData(item, item.running)
+ const data = packageData(item, flag)
editFrequencyOperationSwitch(data).then(res => {
if (res.code === 1000) {
ElMessage.success(res.msg)
@@ -444,8 +444,8 @@ const handleOpenChart = (item) => {
chooseDayRef.value.clearData()
}
})
- clickMonth.value=''
- clickDay.value=''
+ clickMonth.value = ''
+ clickDay.value = ''
isVisited.value = true
selectTimeButton.value = 2
openEquipmentId.value = item.equipmentId