#
whycq
2022-05-15 da05317f9b35e722197b7847db4a65498fed1e53
Monitor-APP/pages/index/index.vue
@@ -248,7 +248,7 @@
            week:'星期四',
            ani:'',
            // move: 'upMove 1.5s 1;',
            move:false,
            move:true,
            topMove:'topUp',
            floorMove:'',
            version:'',
@@ -285,8 +285,8 @@
         }, 1000);
         setInterval(() => {
            this.getDate();
            // this.getPakin();
            // this.getYYY();
            this.getPakin();
            this.getError();
            this.animation();
         },1000)
      },
@@ -297,20 +297,26 @@
         // });
      },
      methods: {
         getError() {
            let that = this
            ni.request({
               url: "http://" + that.baseUrl + ":" + that.basePort + "/jkwcs/monitor/led/error/led",
            uni.request({
               url: "http://" + that.baseUrl + ":" + that.basePort + "/jkwcs/monitor/led/error",
               data: {
                  ledId:that.baseLedId
               },
               method:'GET',
               success(result) {
                  that.title = ''
                  that.staNo = ''
                  console.log(result)
                  let res = result.data 
                  if (res.data) {
                     that.newspaper = '123'
                     that.newspaper = res.data
                     that.move = false
                  } else {
                     that.newspaper = ''
                     that.move = true
                  }
               }
            });
@@ -324,19 +330,20 @@
               },
               method:'GET',
               success(result) {
                  console.log(result)
                  var newsData = ''
                  var str = ''
                  let res = result.data
                  if (res[0]) {
                     if (res[0].ioType === 101) {
                  if (res.data[0]) {
                     if (res.data[0].ioType === 101) {
                        that.title = '全板出库'
                     } else if(res[0].ioType === 103) {
                     } else if(res.data[0].ioType === 103) {
                        that.title = '检料出库'
                     }
                     that.staNo = '目标站' + res[0].staNo
                     that.staNo = '目标站' + res.data[0].staNo
                     
                     for (var i = 0; i < res[0].matDtos.length; i++) {
                        str = res[0].matDtos[i].matnr + ' - ' + res[0].matDtos[i].batch + '\n'
                     for (var i = 0; i < res.data[0].matDtos.length; i++) {
                        str = res.data[0].matDtos[i].matnr + ' - ' + res.data[0].matDtos[i].batch + '\n'
                        newsData = newsData + str 
                     }
                     that.newspaper = newsData