From 1ff4b70e59b8c9ceb80d0a695d26b4419ed349f1 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期三, 08 一月 2025 09:48:53 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/console.html |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 1f9a9dd..2bd4961 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -77,7 +77,8 @@
 					</div>
 					<div>
 <!--						<el-button @click="testMove()">娴嬭瘯绉诲姩杞�</el-button>-->
-<!--						<el-button @click="resetMap()">閲嶇疆鍦板浘</el-button>-->
+						<el-button @click="resetMap()">閲嶇疆鍦板浘</el-button>
+						<el-button @click="initLoc()">鍒濆鍖栧簱浣�</el-button>
 					</div>
 				</div>
 			</div>
@@ -333,7 +334,7 @@
 					map: [],//鍦板浘鏁版嵁
 					currentLev: 1,//鍦板浘褰撳墠妤煎眰
 					siteWindow: false, //绔欑偣寮圭獥鏄剧ず榛樿涓嶆樉绀�
-					floorList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], //褰撳墠椤圭洰妤煎眰
+					floorList: [1, 2, 3], //褰撳墠椤圭洰妤煎眰
 					shuttleList: [], //鍥涘悜绌挎杞﹂泦鍚�
 					currentLevShuttleList: [],//褰撳墠妤煎眰鍥涘悜绌挎杞﹂泦鍚�
 					shuttleColorList: [],//鍥涘悜绌挎杞﹂鑹查泦鍚�
@@ -662,6 +663,24 @@
 							}
 						})
 					},
+					initLoc() {
+						//鍒濆鍖栧簱浣�
+						let that = this
+						$.ajax({
+							url:baseUrl+"/locMast/init",
+							headers:{
+								'token': localStorage.getItem('token')
+							},
+							data:{},
+							method:'post',
+							success:function (res) {
+								that.$message({
+									message: '鍒濆鍖栧畬鎴�',
+									type: 'success'
+								});
+							}
+						})
+					},
 					getCodeData(){
 						this.sendWs(JSON.stringify({
 							"url": "/console/barcode/output/site",

--
Gitblit v1.9.1