#
whycq
2022-12-01 bfbe0defdd57d4c6e9c1be5a0a0725647b94840a
Monitor-APP/pages/home/home.vue
@@ -164,17 +164,17 @@
                                       <view class="flex-row sub-info">
                                          <image src="../../static/g1.png" mode="aspectFit"></image>
                                          <view style="width: 8vw;height: 4vw;line-height: 4vw;">在库</view>
                                          <view style="width: 8vw;height: 4vw;line-height: 4vw;font-size: 2vw;">10000</view>
                                          <view style="width: 8vw;height: 4vw;line-height: 4vw;font-size: 2vw;">{{baseInfo.stockCount}}</view>
                                       </view>
                                       <view class="flex-row sub-info" style="margin-top: 2vh;">
                                          <image src="../../static/g1.png" mode="aspectFit"></image>
                                          <view style="width: 8vw;height: 4vw;line-height: 4vw;">在库</view>
                                          <view style="width: 8vw;height: 4vw;line-height: 4vw;font-size: 2vw;">10000</view>
                                          <view style="width: 8vw;height: 4vw;line-height: 4vw;font-size: 2vw;">{{baseInfo.emptyCount}}</view>
                                       </view>
                                       <view class="flex-row sub-info" style="margin-top: 2vh;">
                                          <image src="../../static/g1.png" mode="aspectFit"></image>
                                          <view style="width: 8vw;height: 4vw;line-height: 4vw;">在库</view>
                                          <view style="width: 8vw;height: 4vw;line-height: 4vw;font-size: 2vw;">10000</view>
                                          <view style="width: 8vw;height: 4vw;line-height: 4vw;font-size: 2vw;">{{baseInfo.noneCount}}</view>
                                       </view>
                                    </view>
                                 </view>
@@ -187,7 +187,8 @@
                           <y-box>
                              <view class="flex-col" style="width: 100%;height: 100%;font-size: 4vh;justify-content: center;letter-spacing: 1vh;">
                                 <!-- 嘉善边锋机械股份有限公司 -->
                                 自动仓库WCS监控平台
                                 <!-- 自动仓库WCS监控平台 -->
                                 <image src="../../static/ruiyun.jpg" mode="" style="width: 100%;"></image>
                              </view>
                           </y-box>
                        </view>
@@ -314,7 +315,10 @@
               xDuration: 3,
               yDuration: 4,
               usedPr: 50,
               used: 3537
               used: 3537,
               stockCount: '',
               emptyCount: '',
               noneCount: '',
            },
            chartsData: {
               "Line": {
@@ -381,7 +385,7 @@
         console.log(that.commonUrl);
      },
      onLoad() {
         this.getServerData()
         // this.getServerData()
         this.getDate()
         setInterval(()=>{
            this.getDate()
@@ -400,10 +404,10 @@
         getUrl() {
            this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort + "/" +this.baseUrl
         },
         getServerData() {
            this.chartsDataLine1=JSON.parse(JSON.stringify(demodata.Line))
            this.chartsDataPie2=JSON.parse(JSON.stringify(demodata.PieA))
         },
         // getServerData() {
         //    this.chartsDataLine1=JSON.parse(JSON.stringify(demodata.Line))
         //    this.chartsDataPie2=JSON.parse(JSON.stringify(demodata.PieA))
         // },
         // 获取错误信息
         getInfo2() {
            let that = this
@@ -705,10 +709,10 @@
                           console.log(result);
                           var res = result.data
                           if (res.code === 200) {
                              that.xDistance = res.data.xDistance
                              that.yDistance = res.data.yDistance
                              that.xDuration = res.data.xDuration
                              that.yDuration = res.data.yDuration
                     that.baseInfo.xDistance = res.data.xDistance
                     that.baseInfo.yDistance = res.data.yDistance
                     that.baseInfo.xDuration = res.data.xDuration
                     that.baseInfo.yDuration = res.data.yDuration
                           } else if (res.code === 403) {
                              
                           } else {