From 6e42ae6d4cd07c4740b89221cd2e83e18d925242 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期五, 24 十一月 2023 13:19:44 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/console.html |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index f23fd86..8fc40bb 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -414,7 +414,10 @@
 					},
 					getSiteInfo() {
 						//鑾峰彇杈撻�佺珯鐐规暟鎹�
-						this.sendWs("{\"url\":\"/console/latest/data/site\",\"data\":{}}")
+						this.sendWs(JSON.stringify({
+							"url": "/console/latest/data/site",
+							"data": {}
+						}))
 					},
 					setSiteInfo(res) {
 						//鑾峰彇杈撻�佺珯鐐规暟鎹�
@@ -441,7 +444,10 @@
 						this.getMap(lev)
 					},
 					getShuttleStateInfo() {
-						this.sendWs("{\"url\":\"/shuttle/table/shuttle/state\",\"data\":{}}")
+						this.sendWs(JSON.stringify({
+							"url": "/shuttle/table/shuttle/state",
+							"data": {}
+						}))
 					},
 					setShuttleStateInfo(res) {
 						// 鍥涘悜绌挎杞︿俊鎭〃鑾峰彇
@@ -469,7 +475,10 @@
 					},
 					getLiftStateInfo() {
 						// 鎻愬崌鏈轰俊鎭〃鑾峰彇
-						this.sendWs("{\"url\":\"/lift/table/lift/state\",\"data\":{}}")
+						this.sendWs(JSON.stringify({
+							"url": "/lift/table/lift/state",
+							"data": {}
+						}))
 					},
 					setLiftStateInfo(res) {
 						// 鎻愬崌鏈轰俊鎭〃鑾峰彇
@@ -639,7 +648,7 @@
 						//閲嶇疆鍦板浘
 						let that = this
 						$.ajax({
-							url:baseUrl+"/console/map/resetMap/auth",
+							url:baseUrl+"/console/map/resetMap/" + this.currentLev,
 							headers:{
 								'token': localStorage.getItem('token')
 							},
@@ -647,7 +656,7 @@
 							method:'get',
 							success:function (res) {
 								that.$message({
-									message: '閲嶇疆瀹屾垚',
+									message: that.currentLev + '灞傚湴鍥鹃噸缃畬鎴�',
 									type: 'success'
 								});
 							}

--
Gitblit v1.9.1