| | |
| | | // const BaseUrl = "http://192.168.3.159:9999/"; |
| | | import {BaseUrl as wrBaseUrl} from '@/api/request.js' |
| | | // const BaseUrl = "http://192.168.0.120:9999" |
| | | const BaseUrl = "http://192.168.110.101:9999" |
| | | const BaseUrl = "http://192.168.110.82:9999" |
| | | |
| | | // 登录 |
| | | // function apiLogin({ |
| | |
| | | |
| | | // const BaseUrl = "http://192.168.0.120:9997" |
| | | // const webSocketUrl = "ws://192.168.0.120:9997/wrzs/ws/info" |
| | | const BaseUrl = "http://192.168.110.101:9997"; |
| | | const webSocketUrl = "ws://192.168.110.101:9997/wrzs/ws/info" |
| | | const BaseUrl = "http://192.168.110.82:9997"; |
| | | const webSocketUrl = "ws://192.168.110.82:9997/wrzs/ws/info" |
| | | |
| | | // 请求拦截 |
| | | const fetch = (url, opt) => { |
| | |
| | | console.log('socketWeigh', res); |
| | | let nowWeighObj = JSON.parse(res.data.slice(7)) |
| | | if (nowWeighObj.eqCode == this.weighHouseCode) { |
| | | if(nowWeighObj.'暂定'){ |
| | | if(nowWeighObj.eqInfraredStatus){ |
| | | this.infraredStatus = true |
| | | this.weighData.weigh = this.realTimeWeigh = nowWeighObj.weigh; |
| | | }else{ |
| | | this.infraredStatus = false |
| | | this.weighData.weigh = this.realTimeWeigh = nowWeighObj.weigh; |