diff --git a/src/views/bigScreen/bigScreen.vue b/src/views/bigScreen/bigScreen.vue index 8f23ef0..74af99d 100644 --- a/src/views/bigScreen/bigScreen.vue +++ b/src/views/bigScreen/bigScreen.vue @@ -52,7 +52,7 @@
-
冷源系统能耗
+
冷源系统能效
-
用电量:{{ energyMes.totalEle }}kw/h
产冷量:{{ energyMes.totalCold }}kwh
+
用电量:{{ energyMes.totalEle }}kw/h
diff --git a/src/views/hotWater/waterControl/index.vue b/src/views/hotWater/waterControl/index.vue index fec54f0..92ac8a5 100644 --- a/src/views/hotWater/waterControl/index.vue +++ b/src/views/hotWater/waterControl/index.vue @@ -67,59 +67,73 @@ />
-
运行状态模式:
+
开关控制:
- - - - +
-
-
故障信息:
- +
+
+
+
故障信息:
+ {{ item.alarmStatus }} + {{ + item.alarmStatus + }} +
+
+
运行状态:
+ 关机 + + 开机 + +
+
+
实际温度:
+
{{ item.temp }}℃
+
+
+
设定温度:
+
+ {{ item.alarmStatus }} - {{ - item.alarmStatus - }} -
-
-
实际温度:
-
{{ item.temp }}℃
-
-
-
设定温度:
-
- -
+ v-model="item.tempSet" + placeholder="请输入" + @keyup.enter.native=" + handleEnter( + item, + item.tempSet, + item.tempSetId, + '设定温度', + '℃' + ) + " + @input="handleInput(item)" + @blur="handleBlur()" + >
@@ -593,15 +607,7 @@ export default { value: 0, }, { - label: "制冷", - value: 2, - }, - { - label: "制热", - value: 3, - }, - { - label: "热水", + label: "开机", value: 4, }, ], @@ -933,26 +939,10 @@ export default { }, // 设置热泵开关状态 handleHotPump(item) { - // 记录原始状态 - const originalStatus = item.hotPumpStatus; - // 根据 value 值获取对应的 label - let statusLabel = ""; - switch (item.hotPumpStatus) { - case 0: - statusLabel = "关机"; - break; - case 2: - statusLabel = "制冷"; - break; - case 3: - statusLabel = "制热"; - break; - case 4: - statusLabel = "热水"; - break; - } this.$confirm( - `确定要切换设备"${item.name}"的状态为:${statusLabel} 吗?"`, + `确定要切换设备"${item.name}"的状态为:${ + item.switchStatus ? "开机" : "关机 吗?" + }`, "提示", { confirmButtonText: "确定", @@ -961,11 +951,19 @@ export default { } ) .then(() => { - this.hadleOperationConrol(item.switchStatusId, item.hotPumpStatus); + // 这里调用请求函数,示例中只是简单打印信息 + console.log("请求后台", item.switchStatus); + let param = null; + if (item.switchStatus) { + param = 1; + } else { + param = 0; + } + this.hadleOperationConrol(item.switchStatusId, param); }) .catch(() => { - // 用户取消操作,恢复状态 - item.hotPumpStatus = originalStatus; + // 用户取消操作,恢复开关状态 + item.switchStatus = !item.switchStatus; }); }, // 设置供水泵手自动状态