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 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: [
{
@ -323,9 +323,9 @@ export default {
},
countType4(data) {
var num = (data - 1000) / 10
return num.toFixed(2)
},
var num = (data - 1000) / 10
return num.toFixed(2)
},
getTypeData(dataCode, typeCode) {
var typeList = this.$store.state.typeList
@ -509,19 +509,20 @@ 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
}
var number = this.padString(this.inputData['30'].toString(2), 2)
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
@ -546,7 +547,7 @@ return num.toFixed(2)
this.getData30() //30/
this.getData29()//29 /
this.getleft2List()//
this.getrightList3()//
this.getcenterBottom()//
@ -559,7 +560,7 @@ return num.toFixed(2)
week: week[this.inputData[5]],
time: h + ":" + m,
}
this.$bus.$emit('refreshTime',time)
this.$bus.$emit('refreshTime', time)
} else {
this.$message.error(res.data.msg);
}