Merge pull request '1' (#106) from pc-master into portal

Reviewed-on: #106
portal
xiaomeng 2024-01-26 01:04:06 +00:00
commit 442fd76f40
1 changed files with 22 additions and 21 deletions

View File

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