#
whycq
2022-05-12 b9a764be15ef6ecc13caf85e7556282c4cb3d16a
Monitor-APP/pages/index/index.vue
@@ -1,6 +1,34 @@
<template>
   <!-- {"msg":"操作成功","code":200,"data":"拣料出库(4426)\n源库位:1200101\n目标站:186\n1101842-10000-22047518517\n\n"} -->
   <!-- "拣料出库(4426)\n源库位:1200101\n目标站:186\n1101842-10000-22047518517\n\n" -->
   <!-- {"msg":"操作成功",
   "code":200,
   "data":[{
      "title":"全板出库",
      "workNo":7016,
      "ioType":101, 101 全板出库  103 检料出库
      "staNo":181,
      "sourceStaNo":null,
      "locNo":null,
      "sourceLocNo":"0900107",
      "matDtos":[
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22037502300","count":1.0},
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22037505146","count":1.0},
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22027504801","count":1.0},
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22027507729","count":1.0},
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22027507727","count":1.0},
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22027507731","count":1.0},
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22027504807","count":1.0},
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22027504805","count":1.0},
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22027504797","count":1.0},
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22027504794","count":1.0},
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22027504791","count":1.0},
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22027504793","count":1.0},
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22037505141","count":1.0},
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22027507728","count":1.0},
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22027504810","count":1.0},
         {"matnr":"1100349-10000","maknx":"C5S-4-M03/333/KS","batch":"22037505148","count":1.0}],
         "emptyMk":false}]} -->
   <view class="container">
      <view class="floor-screen" :class="floorMove" >
         <view class="head">
@@ -16,8 +44,14 @@
                  <view class="box-border box-border2"></view>
                  <view class="box-border box-border3"></view>
                  <view class="box-border box-border4"></view>
                  <view style="">
                  <view style="width: 10%;height: 100%;background-color: #007AFF;display: inline-block;float: left;">
                     <text>全板出库</text>
                  </view>
                  <view style="width: 80%;height: 100%;background-color: #063A7B;display: inline-block;float: left;">
                     <text class="animate">{{newspaper}}</text>
                  </view>
                  <view style="width: 10%;height: 100%;background-color: #00428a;display: inline-block;float: right;">
                     <text>186</text>
                  </view>
               </view>
            </view>
@@ -201,7 +235,7 @@
            show: true,
            modeClass: 'fade',
            styles: {},
            baseUrl:'192.168.2.20',
            baseUrl:'10.10.0.200',
            baseLedId:'',
            value: '',
            xDistance: 0,
@@ -289,9 +323,11 @@
               },
               method:'GET',
               success(result) {
                  console.log(result)
                  var newsData = ''
                  let res = result.data
                  if (res.data) {
                     that.newspaper = res.data
                  if (res.data[0]) {
                     that.newspaper = res.data[0].matDtos
                     that.move = false
                  } else {
                     that.newspaper = ''
@@ -423,8 +459,8 @@
</script>
<style>
    .animate {
               display: inline-block;
   .animate {
      display: inline-block;
               /* white-space: nowrap; */
               animation: 25s wordsLoop linear infinite normal;
           }