#
Junjie
2025-01-08 1ff4b70e59b8c9ceb80d0a695d26b4419ed349f1
src/main/webapp/views/console.html
@@ -76,8 +76,9 @@
                  <el-button :style="{background:currentLev === lev ? '#7DCDFF':''}" @click="changFloor(lev)">{{lev}}F</el-button>
               </div>
               <div>
                  <el-button @click="testMove()">测试移动车</el-button>
<!--                  <el-button @click="testMove()">测试移动车</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",