#
Junjie
2023-09-19 8254197b29064846c3eafc916e340b74434fde6a
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'
                        });
                     }
                  })
               }
            }
         })