From e35bc7628e4bd08dc56d73f89e78f81aa731ebdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?home=E5=AD=99?= <1162067978@qq.com> Date: Fri, 28 Mar 2025 15:41:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E8=B0=83=E5=8A=A0=E5=85=A5=E6=89=8B?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=BC=80=E5=90=AF=E5=87=A0=E5=8C=BA=E7=A9=BA?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/page/air-conditioning.vue | 58 +++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/src/views/page/air-conditioning.vue b/src/views/page/air-conditioning.vue index bc99c1c..2836145 100644 --- a/src/views/page/air-conditioning.vue +++ b/src/views/page/air-conditioning.vue @@ -124,6 +124,36 @@ +
手自动开启几区空调
+
+
+
+ 1区 +
+
+ 2区 +
+
+ 3区 +
+
+ 4区 +
+
+ 5区 +
+
+ 6区 +
+
+ 7区 +
+
+ 8区 +
+
+
+
自动设置
@@ -479,6 +509,7 @@ export default { } }, methods: { + //失去焦点 计算公式 x/10 blurChange10(code, el) { var store = this.$store.state; @@ -537,6 +568,32 @@ export default { // this.changeData(data); // } }, + //开关无效 + changeIndexOpen2(active) { + if (this.actList2[active] == '1') { + this.actList2[active] = '0' + } else { + this.actList2[active] = '1' + } + this.$forceUpdate(); + var revList = this.actList2.slice().reverse() + var num = revList.join(""); + var dataNum = { + target: { + value: parseInt(num, 2), + }, + }; + this.changeBtn(22063, dataNum); + }, + getActive2() { + this.actList2 = [] + var num = this.inputData[22063] + + var num1 = this.padString(num.toString(2), 8) + var openListNew = [] + openListNew = num1.split("") + this.actList2 = openListNew.reverse(); + }, changeCountData(code, el) { var data = el.target.value * 10 + 400; var sendData = { @@ -656,6 +713,7 @@ export default { this.inputDataNew[22041] = this.getData1(this.inputData[22041]); this.inputDataNew[22042] = this.getData2(this.inputData[22042]); this.getActive1(); + this.getActive2() // this.inputDataNew[22045] = this.getData1(this.inputData[22045]); } });