This commit is contained in:
2024-01-05 13:43:54 +08:00
parent 6689c03634
commit 8cbb64e769
6 changed files with 31 additions and 31 deletions

View File

@ -185,10 +185,10 @@
this.getServerData()
},
destroyed() {
clearInterval(this.timer);
if (this.socketOpen == true) {
uni.closeSocket();
}
// clearInterval(this.timer);
// if (this.socketOpen == true) {
// uni.closeSocket();
// }
},
watch: {
echartData: {
@ -201,7 +201,7 @@
if (newValue != 3) {
clearInterval(this.timer);
if (this.socketOpen == true) {
uni.closeSocket();
// uni.closeSocket();
}
} else {
setTimeout(() => {
@ -251,7 +251,7 @@
scoket() {
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
const that = this
uni.closeSocket()
// uni.closeSocket()
this.socketOpen = false
try {
uni.connectSocket({

View File

@ -156,9 +156,9 @@
},
destroyed() {
clearInterval(this.timer);
if (this.socketOpen == true) {
uni.closeSocket();
}
// if (this.socketOpen == true) {
// uni.closeSocket();
// }
},
watch: {
echartData: {
@ -171,7 +171,7 @@
if (newValue != 2) {
clearInterval(this.timer);
if (this.socketOpen == true) {
uni.closeSocket();
// uni.closeSocket();
}
} else {
setTimeout(() => {
@ -223,7 +223,7 @@
scoket() {
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
const that = this
uni.closeSocket()
// uni.closeSocket()
this.socketOpen = false
try {
uni.connectSocket({

View File

@ -158,9 +158,9 @@
},
destroyed() {
clearInterval(this.timer);
if (this.socketOpen == true) {
uni.closeSocket();
}
// if (this.socketOpen == true) {
// uni.closeSocket();
// }
},
watch: {
echartData: {
@ -173,7 +173,7 @@
if (newValue != 4) {
clearInterval(this.timer);
if (this.socketOpen == true) {
uni.closeSocket();
// uni.closeSocket();
}
} else {
setTimeout(() => {
@ -223,7 +223,7 @@
scoket() {
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
const that = this
uni.closeSocket()
// uni.closeSocket()
this.socketOpen = false
try {
uni.connectSocket({

View File

@ -172,9 +172,9 @@
},
destroyed() {
clearInterval(this.timer);
if (this.socketOpen == true) {
uni.closeSocket();
}
// if (this.socketOpen == true) {
// uni.closeSocket();
// }
},
watch: {
echartData: {
@ -187,7 +187,7 @@
if (newValue != 1) {
clearInterval(this.timer);
if (this.socketOpen == true) {
uni.closeSocket();
// uni.closeSocket();
}
} else {
setTimeout(() => {
@ -243,7 +243,7 @@
scoket() {
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
const that = this
uni.closeSocket()
// uni.closeSocket()
this.socketOpen = false
try {
uni.connectSocket({

View File

@ -158,9 +158,9 @@
},
destroyed() {
clearInterval(this.timer);
if (this.socketOpen == true) {
uni.closeSocket();
}
// if (this.socketOpen == true) {
// uni.closeSocket();
// }
},
watch: {
echartData: {
@ -173,7 +173,7 @@
if (newValue != 5) {
clearInterval(this.timer);
if (this.socketOpen == true) {
uni.closeSocket();
// uni.closeSocket();
}
} else {
setTimeout(() => {
@ -223,7 +223,7 @@
scoket() {
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
const that = this
uni.closeSocket()
// uni.closeSocket()
this.socketOpen = false
try {
uni.connectSocket({

View File

@ -158,9 +158,9 @@
},
destroyed() {
clearInterval(this.timer);
if (this.socketOpen == true) {
uni.closeSocket();
}
// if (this.socketOpen == true) {
// uni.closeSocket();
// }
},
watch: {
echartData: {
@ -173,7 +173,7 @@
if (newValue != 6) {
clearInterval(this.timer);
if (this.socketOpen == true) {
uni.closeSocket();
// uni.closeSocket();
}
} else {
setTimeout(() => {
@ -223,7 +223,7 @@
scoket() {
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
const that = this
uni.closeSocket()
// uni.closeSocket()
this.socketOpen = false
try {
uni.connectSocket({