From 0d04e9440d19f30a8220f498ebdde5a8bfcc48a8 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期二, 10 十月 2023 13:50:03 +0800
Subject: [PATCH] #机械臂任务下发

---
 src/main/webapp/views/console.html |   29 +++++++++++++++++++++++++----
 1 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 15e0e2e..a841049 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -37,13 +37,13 @@
 								<!-- 鍏呯數妗� -->
 								<div class="item" style="font-size: 24px">&#9889;</div>
 							</div>
-							<div v-else-if="col.value < 0">
-								<!-- 绂佹鏄剧ず鍖哄煙 -->
-								<div class="item" style="visibility: hidden">{{idx}}</div>
-							</div>
 							<div v-else-if="col.value == -999">
 								<!-- 璺緞鍗犵敤鍖哄煙 -->
 								<div class="item" style="background:#f83333;color: #fff;">{{idx}}</div>
+							</div>
+							<div v-else-if="col.value < 0">
+								<!-- 绂佹鏄剧ず鍖哄煙 -->
+								<div class="item" style="visibility: hidden">{{idx}}</div>
 							</div>
 							<div v-else>
 								<div class="item" v-if="col.data.length > 0">{{col.data}}</div>
@@ -77,6 +77,7 @@
 					</div>
 					<div>
 						<el-button @click="testMove()">娴嬭瘯绉诲姩杞�</el-button>
+						<el-button @click="resetMap()">閲嶇疆鍦板浘</el-button>
 					</div>
 				</div>
 			</div>
@@ -355,6 +356,7 @@
 							this.getShuttleStateInfo() //鑾峰彇鍥涘悜绌挎杞︿俊鎭�
 							this.getLiftStateInfo() //鑾峰彇鎻愬崌鏈轰俊鎭�
 							this.getSiteInfo() //鑾峰彇杈撻�佺珯鐐规暟鎹�
+							this.getMap(this.currentLev) //鑾峰彇瀹炴椂鍦板浘鏁版嵁
 						}, 1000)
 					},
 					//鑾峰彇鍦板浘鏁版嵁
@@ -371,6 +373,7 @@
 								for (let i = 1; i < data.length - 1; i++) {
 									tmp.push(data[i])
 								}
+								console.log(tmp)
 								this.map = tmp
 							}
 						})
@@ -638,6 +641,24 @@
 							}
 						}
 						return data;//杩斿洖灏忚溅鍙烽泦鍚�
+					},
+					resetMap() {
+						//閲嶇疆鍦板浘
+						let that = this
+						$.ajax({
+							url:baseUrl+"/console/map/resetMap/auth",
+							headers:{
+								'token': localStorage.getItem('token')
+							},
+							data:{},
+							method:'get',
+							success:function (res) {
+								that.$message({
+									message: '閲嶇疆瀹屾垚',
+									type: 'success'
+								});
+							}
+						})
 					}
 				}
 			})

--
Gitblit v1.9.1