From d3cc456ffe53a2423c80377d4d96b79459405e29 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期六, 09 九月 2023 16:21:09 +0800
Subject: [PATCH] #
---
src/main/webapp/views/console.html | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 3c5f1f0..28f1c3d 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -73,7 +73,7 @@
<!--杈撳嚭妤煎眰-->
<div style="height: 100%;">
<div class="floorBtnBox" v-for="(lev,idx) in floorList">
- <el-button @click="changFloor(lev)">{{lev}}F</el-button>
+ <el-button :style="{background:currentLev === lev ? '#7DCDFF':''}" @click="changFloor(lev)">{{lev}}F</el-button>
</div>
<div>
<el-button @click="testMove()">娴嬭瘯绉诲姩杞�</el-button>
@@ -418,8 +418,10 @@
if (res.code == 200) {
let currentLevShuttle = []//褰撳墠妤煎眰灏忚溅闆嗗悎
res.data.forEach((item,idx) => {
- if (item.point.z == that.currentLev) {
- currentLevShuttle.push(item)
+ if (item != null && item.point != undefined && item.point != null) {
+ if (item.point.z == that.currentLev) {
+ currentLevShuttle.push(item);
+ }
}
})
that.currentLevShuttleList = currentLevShuttle
--
Gitblit v1.9.1