#
whycq
2022-10-22 d63b3ca02cf31122ef73f641b448b815aee4c82d
Monitor-APP/pages/index/index.vue
@@ -402,7 +402,7 @@
         setTimeout(() => {
            this.getServerData();
            this.getOther();
            this.getPakin();
            // this.getPakin();
         }, 1000);
         setInterval(() => {
            this.getDate();
@@ -416,7 +416,7 @@
      methods: {
         // 获取url
         getUrl() {
            this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort + "/" +this.baseUrl
            this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort  +this.baseUrl
         },
         // 获取错误信息
         getYYY() {
@@ -533,7 +533,7 @@
               },
               method:'GET',
               success(result) {
                  console.log(result);
                  // console.log(result);
                  res = result.data 
                  if (res.data && res.data !== "") {
                     that.errorMsg = res.data
@@ -541,11 +541,11 @@
                     that.move = false // 显示
                  } else {
                     that.errorShow = false
                     if (that.pakinShow) {
                        return;
                     } else {
                        that.move = true // 隐藏
                     }
                     // if (that.pakinShow) {
                     //    return;
                     // } else {
                     //    that.move = true // 隐藏
                     // }
                  }
               }
            });
@@ -563,7 +563,6 @@
               },
               method:'GET',
               success(result) {
                  // console.log(result);
                  res = result.data
                  if(res.data && res.data !== null) {
                     // that.move = false
@@ -575,7 +574,7 @@
                     }
                     that.staNo = '目标站:' + res.data[0].staNo
                     that.matnr = '商品编号:' + res.data[0].matDtos[0].matnr
                     that.maknx = '商品名称:' + res.data[0].matDtos[0].maknx
                     that.maknx = '商品名称:' + res.data[0].matDtos[0].specs
                     that.count = '出库数量:' + res.data[0].matDtos[0].count
                     if (res.data[0].orderNo) {
                        that.orderNo = "订单号:" + res.data[0].orderNo
@@ -590,13 +589,13 @@
                     that.totalOfTray = '托盘总数量:' + res.data[0].totalOfTray
                     that.doneOfUnit = '已出箱数:' + res.data[0].doneOfUnit
                     that.totalOfUnit = '总箱数:' + res.data[0].totalOfUnit
                     if (that.errorShow) {
                        // that.pakinShow = false
                        return;
                     } else {
                        that.newspaper = newsData
                        that.move = false
                     }
                     // if (that.errorShow) {
                     //    // that.pakinShow = false
                     //    return;
                     // } else {
                     //    that.newspaper = newsData
                     //    that.move = false
                     // }
                  }else {
                        that.move = true
                  }
@@ -604,12 +603,10 @@
            });
         },
         animation() {
            if (this.move) {
               // 上层向上 / 下层向上
            if (this.move) {  // true 看板上升 false 看板下降
               this.topMove = 'topUp'
               this.floorMove = 'floorUp'
            } else {
               // 上层向下 / 下层向下
               this.topMove = 'topDown'
               this.floorMove = 'floorDown'
            }
@@ -629,7 +626,6 @@
               url: that.commonUrl + "/monitor/line/charts",
               method:'GET',
               success(result) {
                  console.log(result)
                  var res = result.data
                  if (res.code === 200) {
                     that.chartsData.Line.categories = [
@@ -695,9 +691,6 @@
            uni.setStorageSync('BasePort',this.basePort);
            uni.setStorageSync('BaseCrnId',this.baseCrnId);
            this.getUrl()
            console.log(uni.getStorageSync('BaseIp'));
            console.log(this.baseIP);
            console.log(this.commonUrl);
            this.ejectShow = false
         },
         // 弹出层取消