From b2e0dded312ed31887ae5b33b1ca937cf869d4a7 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Thu, 14 Mar 2024 18:09:00 +0800
Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A3=8E=E6=9C=BA?=
=?UTF-8?q?=E5=90=AF=E5=8A=A8/=E5=81=9C=E6=AD=A2bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/content/fanInfo/FanInfo.vue | 35 +++++++++++-----------
1 file changed, 18 insertions(+), 17 deletions(-)
diff --git a/src/components/content/fanInfo/FanInfo.vue b/src/components/content/fanInfo/FanInfo.vue
index 47711cd..15114f9 100644
--- a/src/components/content/fanInfo/FanInfo.vue
+++ b/src/components/content/fanInfo/FanInfo.vue
@@ -22,16 +22,17 @@
启动
停止
-
@@ -353,21 +354,21 @@ const packageData = (item, type, flag) => {
}
//启动/停止
const editOperate = (item, flag, type) => {
- // ElMessageBox.confirm(`确认${type}${changeNum(item)}号风机吗?`, '系统提示', {
- // type: 'warning',
- // closeOnClickModal: false
- // }).then(() => {
- // const data = packageData(item, flag)
- // editFrequencyOperationSwitch(data).then(res => {
- // if (res.code === 1000) {
- // ElMessage.success(res.msg)
- // } else {
- // ElMessage.error(res.msg)
- // }
- // })
- // }).catch(() => {
- // item.running = !item.running
- // });
+ ElMessageBox.confirm(`确认${type}${changeNum(item)}号风机吗?`, '系统提示', {
+ type: 'warning',
+ closeOnClickModal: false
+ }).then(() => {
+ const data = packageData(item, flag)
+ editFrequencyOperationSwitch(data).then(res => {
+ if (res.code === 1000) {
+ ElMessage.success(res.msg)
+ } else {
+ ElMessage.error(res.msg)
+ }
+ })
+ }).catch(() => {
+ item.running = !item.running
+ });
}
const changeFrequency = (item) => {
@@ -1050,7 +1051,7 @@ input[type="number"] {
& > div {
flex: 1;
text-align: center;
- //cursor: pointer;
+ cursor: pointer;
}
}
}