pull/5/head
孙萌 2023-10-07 11:48:43 +08:00
parent 5d68ca8790
commit ea254ab4b4
4 changed files with 20 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -75,12 +75,13 @@ export default {
setTimeout(() => { setTimeout(() => {
that.dataInit(); that.dataInit();
that.timer&&clearInterval(that.timer) that.timer&&clearInterval(that.timer)
setInterval(() => { that.timer= setInterval(() => {
that.dataInit(); that.dataInit();
}, 60000); }, 60000);
}, 0); }, 0);
}, },
beforeDestroy() { beforeDestroy() {
const that = this;
// //
if (this.player) { if (this.player) {
this.player.dispose(); this.player.dispose();

View File

@ -35,8 +35,8 @@
</div> </div>
</div> </div>
<div class="left-btn"> <div class="left-btn">
<div :class="left1Act == 0 ? 'active' : ''">进水泵</div> <div :class="left1Act == 1&&left1Act==3 ? 'active' : ''">进水泵</div>
<div :class="left1Act == 1 ? 'active' : ''">配肥泵</div> <div :class="left1Act == 2&&left1Act==3 ? 'active' : ''">配肥泵</div>
</div> </div>
</div> </div>
@ -247,8 +247,8 @@ export default {
ADdata: 0, ADdata: 0,
},], },],
right2Index: [], right2Index: [],
rightList2: ['外控信号2#', rightList2: ['外控信号1#',
'外控信号1#', '外控信号2#',
'外控信号3#', '外控信号3#',
'外控信号4#', '外控信号4#',
'高液位信号', '高液位信号',
@ -280,6 +280,7 @@ export default {
}, },
// //
beforeDestroy(){ beforeDestroy(){
const that = this;
that.pageTimer&&clearInterval(that.pageTimer) that.pageTimer&&clearInterval(that.pageTimer)
}, },
mounted() { mounted() {
@ -494,15 +495,19 @@ export default {
}, },
// //
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])) { // if (Number(number[0])) {
this.left1Act = 1 // this.left1Act = 1
} // }
else if (Number(number[1])) { // if (Number(number[1])) {
this.left1Act = 0 // this.left1Act = 0
} else { // }
this.left1Act = -1 // if (Number(number[0])&&Number(number[1])) {
} // this.left1Act = 3
// }
// else {
// this.left1Act = -1
// }
}, },
dataInit() { dataInit() {
var deviceDetail = this.deviceDetail var deviceDetail = this.deviceDetail