From 298ccf07fc34186c690d5cee51d1c66f55e9263f Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期三, 28 五月 2025 14:19:06 +0800 Subject: [PATCH] # --- src/main/webapp/views/admin/locMap/locMap.html | 22 +++++++++++++--------- 1 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/main/webapp/views/admin/locMap/locMap.html b/src/main/webapp/views/admin/locMap/locMap.html index 347f66c..4b25c9a 100644 --- a/src/main/webapp/views/admin/locMap/locMap.html +++ b/src/main/webapp/views/admin/locMap/locMap.html @@ -193,22 +193,26 @@ }, methods: { init(){ + let that = this ws = new WebSocket("ws://" + window.location.host + baseUrl + "/console/websocket"); ws.onopen = this.webSocketOnOpen ws.onerror = this.webSocketOnError ws.onmessage = this.webSocketOnMessage ws.onclose = this.webSocketClose - this.getMap(this.currentLev) - this.initLev()//鍒濆鍖栨ゼ灞備俊鎭� - this.consoleInterval = setInterval(() => { - this.getMap(this.currentLev) //鑾峰彇瀹炴椂鍦板浘鏁版嵁 - this.getShuttleStateInfo() //鑾峰彇鍥涘悜绌挎杞︿俊鎭� - this.getLiftStateInfo() //鑾峰彇鎻愬崌鏈轰俊鎭� - this.getSiteInfo() //鑾峰彇杈撻�佺珯鐐规暟鎹� - // this.getCodeData()//鑾峰彇鏉$爜 - }, 1000) + this.initLev()//鍒濆鍖栨ゼ灞備俊鎭� + setTimeout(() => { + that.getMap(this.currentLev) + }, 1000); + + // this.consoleInterval = setInterval(() => { + // this.getMap(this.currentLev) //鑾峰彇瀹炴椂鍦板浘鏁版嵁 + // this.getShuttleStateInfo() //鑾峰彇鍥涘悜绌挎杞︿俊鎭� + // this.getLiftStateInfo() //鑾峰彇鎻愬崌鏈轰俊鎭� + // this.getSiteInfo() //鑾峰彇杈撻�佺珯鐐规暟鎹� + // // this.getCodeData()//鑾峰彇鏉$爜 + // }, 1000) }, initLev(){ -- Gitblit v1.9.1