#
Junjie
2023-10-12 a71d0a6a0d5e31f0e93feaf0444d93bc603fdd90
src/main/webapp/views/console.html
@@ -187,7 +187,7 @@
                     <li><span>条码名称</span><span class="right">扫码时间</span></li>
                  </div>
                  <div id="barcode1" class="table-body">
                     <li v-for="(item,index) in codeList" :key="index"><span>{{item.barcode}}</span><span class="right">{{item.time}}</span></li>
                  </div>
               </div>
               <div class="tablebox">
@@ -340,6 +340,7 @@
               liftList: [], //提升机集合
               systemStatus: true,//系统运行状态
               consoleInterval: null,//定时器存储变量
               codeList: [],//条码List
            },
            created() {
               this.init()
@@ -357,6 +358,7 @@
                     this.getLiftStateInfo() //获取提升机信息
                     this.getSiteInfo() //获取输送站点数据
                     this.getMap(this.currentLev) //获取实时地图数据
                     this.getCodeData()//获取条码
                  }, 1000)
               },
               //获取地图数据
@@ -373,7 +375,7 @@
                        for (let i = 1; i < data.length - 1; i++) {
                           tmp.push(data[i])
                        }
                        console.log(tmp)
                        // console.log(tmp)
                        this.map = tmp
                     }
                  })
@@ -659,6 +661,19 @@
                        });
                     }
                  })
               },
               getCodeData(){
                  let that = this
                  $.ajax({
                     url:baseUrl +'/console/barcode/output/site',
                     method:'GET',
                     success:function (res) {
                        if(res.code === 200){
                           let data = JSON.parse(res.data)
                           that.codeList = data
                        }
                     }
                  })
               }
            }
         })