修改
This commit is contained in:
parent
6689c03634
commit
8cbb64e769
@ -185,10 +185,10 @@
|
|||||||
this.getServerData()
|
this.getServerData()
|
||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
clearInterval(this.timer);
|
// clearInterval(this.timer);
|
||||||
if (this.socketOpen == true) {
|
// if (this.socketOpen == true) {
|
||||||
uni.closeSocket();
|
// uni.closeSocket();
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
echartData: {
|
echartData: {
|
||||||
@ -201,7 +201,7 @@
|
|||||||
if (newValue != 3) {
|
if (newValue != 3) {
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
if (this.socketOpen == true) {
|
if (this.socketOpen == true) {
|
||||||
uni.closeSocket();
|
// uni.closeSocket();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@ -251,7 +251,7 @@
|
|||||||
scoket() {
|
scoket() {
|
||||||
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
|
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
|
||||||
const that = this
|
const that = this
|
||||||
uni.closeSocket()
|
// uni.closeSocket()
|
||||||
this.socketOpen = false
|
this.socketOpen = false
|
||||||
try {
|
try {
|
||||||
uni.connectSocket({
|
uni.connectSocket({
|
||||||
|
|||||||
@ -156,9 +156,9 @@
|
|||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
if (this.socketOpen == true) {
|
// if (this.socketOpen == true) {
|
||||||
uni.closeSocket();
|
// uni.closeSocket();
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
echartData: {
|
echartData: {
|
||||||
@ -171,7 +171,7 @@
|
|||||||
if (newValue != 2) {
|
if (newValue != 2) {
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
if (this.socketOpen == true) {
|
if (this.socketOpen == true) {
|
||||||
uni.closeSocket();
|
// uni.closeSocket();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@ -223,7 +223,7 @@
|
|||||||
scoket() {
|
scoket() {
|
||||||
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
|
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
|
||||||
const that = this
|
const that = this
|
||||||
uni.closeSocket()
|
// uni.closeSocket()
|
||||||
this.socketOpen = false
|
this.socketOpen = false
|
||||||
try {
|
try {
|
||||||
uni.connectSocket({
|
uni.connectSocket({
|
||||||
|
|||||||
@ -158,9 +158,9 @@
|
|||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
if (this.socketOpen == true) {
|
// if (this.socketOpen == true) {
|
||||||
uni.closeSocket();
|
// uni.closeSocket();
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
echartData: {
|
echartData: {
|
||||||
@ -173,7 +173,7 @@
|
|||||||
if (newValue != 4) {
|
if (newValue != 4) {
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
if (this.socketOpen == true) {
|
if (this.socketOpen == true) {
|
||||||
uni.closeSocket();
|
// uni.closeSocket();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@ -223,7 +223,7 @@
|
|||||||
scoket() {
|
scoket() {
|
||||||
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
|
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
|
||||||
const that = this
|
const that = this
|
||||||
uni.closeSocket()
|
// uni.closeSocket()
|
||||||
this.socketOpen = false
|
this.socketOpen = false
|
||||||
try {
|
try {
|
||||||
uni.connectSocket({
|
uni.connectSocket({
|
||||||
|
|||||||
@ -172,9 +172,9 @@
|
|||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
if (this.socketOpen == true) {
|
// if (this.socketOpen == true) {
|
||||||
uni.closeSocket();
|
// uni.closeSocket();
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
echartData: {
|
echartData: {
|
||||||
@ -187,7 +187,7 @@
|
|||||||
if (newValue != 1) {
|
if (newValue != 1) {
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
if (this.socketOpen == true) {
|
if (this.socketOpen == true) {
|
||||||
uni.closeSocket();
|
// uni.closeSocket();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@ -243,7 +243,7 @@
|
|||||||
scoket() {
|
scoket() {
|
||||||
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
|
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
|
||||||
const that = this
|
const that = this
|
||||||
uni.closeSocket()
|
// uni.closeSocket()
|
||||||
this.socketOpen = false
|
this.socketOpen = false
|
||||||
try {
|
try {
|
||||||
uni.connectSocket({
|
uni.connectSocket({
|
||||||
|
|||||||
@ -158,9 +158,9 @@
|
|||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
if (this.socketOpen == true) {
|
// if (this.socketOpen == true) {
|
||||||
uni.closeSocket();
|
// uni.closeSocket();
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
echartData: {
|
echartData: {
|
||||||
@ -173,7 +173,7 @@
|
|||||||
if (newValue != 5) {
|
if (newValue != 5) {
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
if (this.socketOpen == true) {
|
if (this.socketOpen == true) {
|
||||||
uni.closeSocket();
|
// uni.closeSocket();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@ -223,7 +223,7 @@
|
|||||||
scoket() {
|
scoket() {
|
||||||
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
|
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
|
||||||
const that = this
|
const that = this
|
||||||
uni.closeSocket()
|
// uni.closeSocket()
|
||||||
this.socketOpen = false
|
this.socketOpen = false
|
||||||
try {
|
try {
|
||||||
uni.connectSocket({
|
uni.connectSocket({
|
||||||
|
|||||||
@ -158,9 +158,9 @@
|
|||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
if (this.socketOpen == true) {
|
// if (this.socketOpen == true) {
|
||||||
uni.closeSocket();
|
// uni.closeSocket();
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
echartData: {
|
echartData: {
|
||||||
@ -173,7 +173,7 @@
|
|||||||
if (newValue != 6) {
|
if (newValue != 6) {
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
if (this.socketOpen == true) {
|
if (this.socketOpen == true) {
|
||||||
uni.closeSocket();
|
// uni.closeSocket();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@ -223,7 +223,7 @@
|
|||||||
scoket() {
|
scoket() {
|
||||||
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
|
var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo
|
||||||
const that = this
|
const that = this
|
||||||
uni.closeSocket()
|
// uni.closeSocket()
|
||||||
this.socketOpen = false
|
this.socketOpen = false
|
||||||
try {
|
try {
|
||||||
uni.connectSocket({
|
uni.connectSocket({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user