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