pull/106/head
孙萌 2024-01-26 08:57:56 +08:00
parent b41ed86baa
commit d25457df51
1 changed files with 22 additions and 21 deletions

View File

@ -35,8 +35,8 @@
</div> </div>
</div> </div>
<div class="left-btn"> <div class="left-btn">
<div :class="left1Act == 1 || left1Act == 3 ? 'active' : ''">进水泵</div> <div :class="left1Act[1]==1 ? 'active' : ''">进水泵</div>
<div :class="left1Act == 2 || left1Act == 3 ? 'active' : ''">配肥泵</div> <div :class="left1Act[0]==1 ? 'active' : ''">配肥泵</div>
</div> </div>
</div> </div>
@ -140,7 +140,7 @@ export default {
data() { data() {
return { return {
pageTimer: null, pageTimer: null,
left1Act: -1, left1Act: [0,0],
openType: '', openType: '',
left2List: [ left2List: [
{ {
@ -510,18 +510,19 @@ return num.toFixed(2)
// //
getData30() { getData30() {
var number = this.padString(this.inputData['30'].toString(2), 2) var number = this.padString(this.inputData['30'].toString(2), 2)
if (Number(number[0])) { this.left1Act=number
this.left1Act = 1 // if (Number(number[0])) {
} // this.left1Act = 1
if (Number(number[1])) { // }
this.left1Act = 0 // if (Number(number[1])) {
} // this.left1Act = 0
if (Number(number[0])&&Number(number[1])) { // }
this.left1Act = 3 // if (Number(number[0]) && Number(number[1])) {
} // this.left1Act = 3
else { // }
this.left1Act = -1 // else {
} // this.left1Act = -1
// }
}, },
dataInit() { dataInit() {
const that = this const that = this