自动化立体仓库 - WCS系统
#
Junjie
2025-03-13 5dba0daf423f5b4e45b3bcdb55c7de51950dc277
src/main/webapp/views/console.html
@@ -334,7 +334,7 @@
               map: [],//地图数据
               currentLev: 1,//地图当前楼层
               siteWindow: false, //站点弹窗显示默认不显示
               floorList: [1, 2, 3, 4], //当前项目楼层
               floorList: [], //当前项目楼层
               shuttleList: [], //四向穿梭车集合
               currentLevShuttleList: [],//当前楼层四向穿梭车集合
               shuttleColorList: [],//四向穿梭车颜色集合
@@ -361,6 +361,7 @@
                  this.getMap(this.currentLev)
                  this.getSystemRunningStatus() //获取系统运行状态
                  this.initLev()//初始化楼层信息
                  this.consoleInterval = setInterval(() => {
                     this.getShuttleStateInfo() //获取四向穿梭车信息
@@ -663,23 +664,28 @@
                     }
                  })
               },
               initLoc() {
                  //初始化库位
               initLev(){
                  let that = this
                  $.ajax({
                     url:baseUrl+"/locMast/init",
                     headers:{
                     url: baseUrl + "/console/map/lev/list",
                     headers: {
                        'token': localStorage.getItem('token')
                     },
                     data:{},
                     method:'post',
                     success:function (res) {
                        that.$message({
                           message: '初始化完成',
                           type: 'success'
                        });
                     data: {},
                     method: 'get',
                     success: function(res) {
                        if (res.code === 200) {
                           that.floorList = res.data;
                        } else if (res.code === 403) {
                           parent.location.href = baseUrl + "/login";
                        } else {
                           that.$message({
                              message: res.msg,
                              type: 'error'
                           });
                        }
                     }
                  })
                  });
               },
               getCodeData(){
                  this.sendWs(JSON.stringify({