#
whycq
2022-12-01 314a014f45a733cf4ed22705ddbd0a49b3744814
Monitor-APP/pages/home/home.vue
@@ -187,8 +187,8 @@
                           <y-box>
                              <view class="flex-col" style="width: 100%;height: 100%;font-size: 4vh;justify-content: center;letter-spacing: 1vh;">
                                 <!-- 嘉善边锋机械股份有限公司 -->
                                 <!-- 自动仓库WCS监控平台 -->
                                 <image src="../../static/ruiyun.jpg" mode="" style="width: 100%;"></image>
                                 自动仓库WCS监控平台
                                 <!-- <image src="../../static/ruiyun.jpg" mode="" style="width: 100%;"></image> -->
                              </view>
                           </y-box>
                        </view>
@@ -382,15 +382,16 @@
         that.basePort = BasePort
         that.baseCrnId = BaseCrnId
         this.getUrl()
         console.log(that.commonUrl);
      },
      onLoad() {
         // this.getServerData()
         this.getDate()
         setInterval(()=>{
            this.getDate()
            this.getInfo()
            this.getError()
            this.getUrl()
            // 测试用
            // this.getInfo2()
            // this.getError2()
@@ -699,14 +700,12 @@
         getOther() {
            let that = this
            uni.request({
               // http://10.10.0.222:9090/jkwcs/monitor/led?ledId=186
               url: that.commonUrl + "/monitor/other",
               data: {
                  crnId: that.baseCrnId, 
                  ledId: that.baseLedId,
               },
               success(result) {
                  console.log(result);
                  var res = result.data
                  if (res.code === 200) {
                     that.baseInfo.xDistance = res.data.xDistance