修改
This commit is contained in:
parent
6689c03634
commit
8cbb64e769
@ -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({
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user