From 76f70e9b4cac4a0dc9b02274de3fa7152c7921f4 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期四, 25 九月 2025 16:24:00 +0800
Subject: [PATCH] #
---
src/main/webapp/views/admin/locMap/locMap.html | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/views/admin/locMap/locMap.html b/src/main/webapp/views/admin/locMap/locMap.html
index e9140ad..1942958 100644
--- a/src/main/webapp/views/admin/locMap/locMap.html
+++ b/src/main/webapp/views/admin/locMap/locMap.html
@@ -193,14 +193,18 @@
},
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()//鍒濆鍖栨ゼ灞備俊鎭�
+ setTimeout(() => {
+ that.getMap(this.currentLev)
+ }, 1000);
// this.consoleInterval = setInterval(() => {
// this.getMap(this.currentLev) //鑾峰彇瀹炴椂鍦板浘鏁版嵁
@@ -317,7 +321,7 @@
//鑾峰彇鍦板浘鏁版嵁
getMap(lev) {
this.sendWs(JSON.stringify({
- "url": "/console/map/auth",
+ "url": "/console/locMap/auth",
"data": lev
}))
},
@@ -693,6 +697,8 @@
this.setSiteInfo(JSON.parse(result.data))
}else if (result.url == "/console/map/auth") {
this.setMap(JSON.parse(result.data))
+ }else if (result.url == "/console/locMap/auth") {
+ this.setMap(JSON.parse(result.data))
}else if (result.url == "/console/barcode/output/site") {
this.setCodeData(JSON.parse(result.data))
}
--
Gitblit v1.9.1