Compare commits

..

No commits in common. "226f5f358f348413238f203124318862c898523c" and "5d68ca8790a71c35135b493738a02ca1f9fa097e" have entirely different histories.

4 changed files with 15 additions and 21 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

View File

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