| | |
| | | <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> |
| | |
| | | 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() |
| | |
| | | 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 |