空调加入手自动开启几区空调
This commit is contained in:
parent
e788d4d276
commit
e35bc7628e
@ -124,6 +124,36 @@
|
||||
</el-dropdown>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-tips">手自动开启几区空调</div>
|
||||
<div class="flex-view">
|
||||
<div class="input-btn ">
|
||||
<div class="btn btn-w70" @click="changeIndexOpen2(0)" :class="actList2[0] == '1' ? 'blue' : 'off'">
|
||||
1区
|
||||
</div>
|
||||
<div class="btn btn-w70" @click="changeIndexOpen2(1)" :class="actList2[1] == '1' ? 'blue' : 'off'">
|
||||
2区
|
||||
</div>
|
||||
<div class="btn btn-w70" @click="changeIndexOpen2(2)" :class="actList2[2] == '1' ? 'blue' : 'off'">
|
||||
3区
|
||||
</div>
|
||||
<div class="btn btn-w70" @click="changeIndexOpen2(3)" :class="actList2[3] == '1' ? 'blue' : 'off'">
|
||||
4区
|
||||
</div>
|
||||
<div class="btn btn-w70" @click="changeIndexOpen2(4)" :class="actList2[4] == '1' ? 'blue' : 'off'">
|
||||
5区
|
||||
</div>
|
||||
<div class="btn btn-w70" @click="changeIndexOpen2(5)" :class="actList2[5] == '1' ? 'blue' : 'off'">
|
||||
6区
|
||||
</div>
|
||||
<div class="btn btn-w70" @click="changeIndexOpen2(6)" :class="actList2[6] == '1' ? 'blue' : 'off'">
|
||||
7区
|
||||
</div>
|
||||
<div class="btn btn-w70" @click="changeIndexOpen2(7)" :class="actList2[7] == '1' ? 'blue' : 'off'">
|
||||
8区
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="title-tips-bold"><img src="@/assets/img/title-tips-bold-icon.png" alt="">自动设置</div>
|
||||
<div class="flex-view padding-none border-none shrink-none">
|
||||
<div class="input-main">
|
||||
@ -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]);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user