From 91526eb84729c92b3b30eb0a8be0dae2b6c247d1 Mon Sep 17 00:00:00 2001 From: gtz <535262213@qq.com> Date: Fri, 29 Dec 2023 17:57:29 +0800 Subject: [PATCH] '1' --- src/views/OperationalOverview/coldBoard.vue | 8 ++++---- src/views/OperationalOverview/processingBoard.vue | 6 +++--- src/views/databoard/kiln/index.vue | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/OperationalOverview/coldBoard.vue b/src/views/OperationalOverview/coldBoard.vue index 57e845e9..470c8f08 100644 --- a/src/views/OperationalOverview/coldBoard.vue +++ b/src/views/OperationalOverview/coldBoard.vue @@ -397,7 +397,7 @@ export default { // const wsUrl = 'ws://192.168.1.104:48082/websocket/message?userId=SJG' let date = new Date().valueOf() console.log(date); - const SJGWsUrl = `ws://192.168.0.33:48082/websocket/message?userId=COLD${date}` + const SJGWsUrl = `ws://10.70.2.2:8080/websocket/message?userId=COLD${date}` this.SJGWebsocket = new WebSocket(SJGWsUrl) // 监听 WebSocket 连接 this.SJGWebsocket.onopen = this.SJGWebsocketOnOpen @@ -407,7 +407,7 @@ export default { this.SJGWebsocket.onmessage = this.SJGWebsocketOnMessage // 监听 webSocket 断开信息 this.SJGWebsocket.onclose = this.SJGWebsocketClose - const cutWsUrl = `ws://192.168.0.33:48082/websocket/message?userId=CUTTING${date}` + const cutWsUrl = `ws://10.70.2.2:8080/websocket/message?userId=CUTTING${date}` this.cutWebsocket = new WebSocket(cutWsUrl) // 监听 WebSocket 连接 @@ -418,7 +418,7 @@ export default { this.cutWebsocket.onmessage = this.cutWebsocketOnMessage // 监听 webSocket 断开信息 this.cutWebsocket.onclose = this.cutWebsocketClose - const funWsUrl = `ws://10.70.180.10:8081/xc-screen/websocket/${date}` + const funWsUrl = `ws://10.70.2.2:8080/xc-screen/websocket/${date}` this.funWebsocket = new WebSocket(funWsUrl) // 监听 WebSocket 连接 this.funWebsocket.onopen = this.funWebsocketOnOpen @@ -428,7 +428,7 @@ export default { this.funWebsocket.onmessage = this.funWebsocketOnMessage // 监听 webSocket 断开信息 this.funWebsocket.onclose = this.funWebsocketClose - // const wsUrl = 'ws://192.168.0.33:48082/websocket/message?userId=EN111' + // const wsUrl = 'ws://10.70.2.2:8080/websocket/message?userId=EN111' // 实例化 WebSocket // this.websocket = new WebSocket(wsUrl) // // 监听 WebSocket 连接 diff --git a/src/views/OperationalOverview/processingBoard.vue b/src/views/OperationalOverview/processingBoard.vue index 33f03ab2..6c771f72 100644 --- a/src/views/OperationalOverview/processingBoard.vue +++ b/src/views/OperationalOverview/processingBoard.vue @@ -636,11 +636,11 @@ export default { if (typeof (WebSocket) === 'undefined') { alert('您的浏览器不支持WebSocket') } else { - const wsUrl = `ws://192.168.0.33:48082/websocket/message?userId=EN${date}` + const wsUrl = `ws://10.70.2.2:8080/websocket/message?userId=EN${date}` // const wsUrl = 'ws://192.168.1.104:48082/websocket/message?userId=SJG' let date = new Date().valueOf() console.log(date); - const SJGWsUrl = `ws://192.168.0.33:48082/websocket/message?userId=SJG${date}` + const SJGWsUrl = `ws://10.70.2.2:8080/websocket/message?userId=SJG${date}` this.SJGWebsocket = new WebSocket(SJGWsUrl) // 监听 WebSocket 连接 this.SJGWebsocket.onopen = this.SJGWebsocketOnOpen @@ -650,7 +650,7 @@ export default { this.SJGWebsocket.onmessage = this.SJGWebsocketOnMessage // 监听 webSocket 断开信息 this.SJGWebsocket.onclose = this.SJGWebsocketClose - // const wsUrl = 'ws://192.168.0.33:48082/websocket/message?userId=EN111' + // const wsUrl = 'ws://10.70.2.2:8080/websocket/message?userId=EN111' // 实例化 WebSocket this.websocket = new WebSocket(wsUrl) // 监听 WebSocket 连接 diff --git a/src/views/databoard/kiln/index.vue b/src/views/databoard/kiln/index.vue index 2d99117b..f39a213c 100644 --- a/src/views/databoard/kiln/index.vue +++ b/src/views/databoard/kiln/index.vue @@ -82,7 +82,7 @@ export default { // this.getMes() // closeWebsocket() getDcsMsg() - // getMesMsg() + getMesMsg() console.log('mounted...........') }, destroyed() {