#
Junjie
2025-07-26 c7b3edb405149d76e0e71d7e754bd46c42b05eb3
src/main/webapp/views/console.html
@@ -13,6 +13,9 @@
      <script type="text/javascript" src="../static/js/common.js"></script>
      <script type="text/javascript" src="../static/vue/js/vue.min.js"></script>
      <script type="text/javascript" src="../static/vue/element/element.js"></script>
      <style>
      </style>
   </head>
   <body>
      <div id="app">
@@ -57,15 +60,17 @@
                  </div>
               </div>
               <!--输出小车-->
               <div v-for="(car,idx) in currentLevShuttleList"
                   :style="{
                   left: getCarPosition(car.point.x,car.point.y)[1]
                   ,top: getCarPosition(car.point.x,car.point.y)[0]
                   ,color: shuttleColorList[car.shuttleNo]
                   }"
                   class="sxcar" :id="'sxcar-' + car.shuttleNo">
                  {{car.shuttleNo}}
               <div
                     v-for="(car, idx) in currentLevShuttleList"
                     :style="{
                        '--x-pos': getCarPosition(car.point.x, car.point.y)[1],
                        '--y-pos': getCarPosition(car.point.x, car.point.y)[0],
                        color: shuttleColorList[car.shuttleNo]
                       }"
                     class="sxcar"
                     :id="'sxcar-' + car.shuttleNo"
               >
                  {{ car.shuttleNo }}
               </div>
            </div>
@@ -77,8 +82,7 @@
               </div>
               <div>
<!--                  <el-button @click="testMove()">测试移动车</el-button>-->
                  <el-button @click="resetMap()">重置地图</el-button>
                  <el-button @click="checkTask()">任务检测</el-button>
<!--                  <el-button @click="resetMap()">重置地图</el-button>-->
<!--                  <el-button @click="initLoc()">初始化库位</el-button>-->
               </div>
            </div>
@@ -662,30 +666,6 @@
                           message: that.currentLev + '层地图重置完成',
                           type: 'success'
                        });
                     }
                  })
               },
               checkTask() {
                  let that = this
                  $.ajax({
                     url:baseUrl+"/console/checkTask",
                     headers:{
                        'token': localStorage.getItem('token')
                     },
                     data:{},
                     method:'get',
                     success:function (res) {
                        if (res.code === 200) {
                           that.$message({
                              message: res.msg,
                              type: 'success'
                           });
                        } else {
                           that.$message({
                              message: res.msg,
                              type: 'error'
                           });
                        }
                     }
                  })
               },