#
whycq
2023-11-03 0d21b36b1179a77c86f8fdcce12566be7f3fc8fa
Monitor-APP/pages/home/home.vue
@@ -212,22 +212,30 @@
               <view class="info-box">
                  <y-box>
                     <!-- 文本容器 -->
                     <view class="text-content">
                     <view class="text-content" v-for="item in swiperList">
                        <view>目标站:{{infoText.staNo}}</view>
                        <view>商品名称:{{item.matnr}}</view>
                        <view>商品名称:{{item.maknx}}</view>
                        <view>规格:{{item.specs}}</view>
                        <view>数量:{{item.count}} / {{item.total ? item.total : '--'}}</view>
                        <!-- head -->
                        <view class="swiper-head">
                        <!-- <view class="swiper-head">
                           <view style="width: 20%;">目标站:{{infoText.staNo}}</view>
                           <view style="width: 30%;">商品编号</view>
                           <view style="width: 20%;">商品名称</view>
                           <view style="width: 20%;">规格</view>
                           <view style="width: 10%;">数量</view>
                        </view>
                        </view> -->
                        <!-- body -->
                        <view class="swiper-body">
                        <!-- <view class="swiper-body"> -->
                           <!-- swiper 一些说明
                           circular 是否采用衔接滑动,即播放到末尾后重新回到开头
                           vertical 滑动方向是否为纵向 
                           display-multiple-items 同时显示的滑块数量 -->
                           <swiper class="swiper-body-main" vertical="true"
                           <!-- <swiper class="swiper-body-main" vertical="true"
                           display-multiple-items="8"
                           circular="true" :autoplay="true" :interval="3000" :duration="1000">
                              <swiper-item class="swiper-item" v-for="(item,i) in swiperList" :key="i">
@@ -238,7 +246,7 @@
                                 <view style="width: 10%;">{{item.count}}</view>
                              </swiper-item>
                           </swiper>
                        </view>
                        </view> -->
                     </view>
                  </y-box>
               </view>
@@ -418,18 +426,25 @@
      },
      onLoad() {
         setInterval(()=>{
            // this.getInfo()
            // this.getError()
            this.getInfo2()
            this.getError2()
            this.controller()
         },1000)
         setInterval(()=>{
            this.getServerData()
            this.initlineChart()
            this.initPieChart()
            this.getOther()
            this.getDate2()
            // this.getInfo()
            // this.getError()
            this.getInfo2()
            this.getError2()
            this.getUrl()
            this.controller()
         },1000)
         },3600000)
         this.getUrl()
         this.getServerData()
         this.initlineChart()
         this.initPieChart()
         this.getOther()
         this.getDate2()
      },
      methods: {
         timeOuts() {
@@ -447,6 +462,7 @@
            let that = this
            var result = ycqdata.dataInfo2
            var   res = result.data
            console.log(res);
            that.infoModel(res)
         },
         getError2 () {