| | |
| | | msgType: 'success', |
| | | filename: '', |
| | | dialogContent: '', |
| | | wmsUrl: '', |
| | | wmsUrl: 'http://10.10.10.200:8080/wms', |
| | | wmsPort: '', |
| | | switchDebounceTimer: null, |
| | | viewSwitchInProgress: false, |
| | | getConfigUrl:"http://127.0.0.1:8088/wcs/monitor/getIpConfig" |
| | | getConfigUrl:"http://10.10.10.200:8080/wcs/monitor/getIpConfig", |
| | | |
| | | }; |
| | | }, |
| | | onShow() { |
| | |
| | | const BaseLedId = uni.getStorageSync('BaseLedId'); |
| | | const BasePort = uni.getStorageSync('BasePort'); |
| | | const BaseCrnId = uni.getStorageSync('BaseCrnId'); |
| | | const PROJ = uni.getStorageSync('UPROJ'); |
| | | const WMSURL = uni.getStorageSync('wmsUrl'); |
| | | const WMSPORT = uni.getStorageSync('wmsPort'); |
| | | const PROJ = uni.getStorageSync('UPROJ'); |
| | | that.baseUrl = PROJ; |
| | | that.baseIP = BaseIP; |
| | | that.baseLedId = BaseLedId; |
| | | that.basePort = BasePort; |
| | | that.baseCrnId = BaseCrnId; |
| | | that.wmsUrl = WMSURL; |
| | | that.wmsPort = WMSPORT; |
| | | that.baseCrnId = BaseCrnId; |
| | | }, |
| | | created() { |
| | | let that = this; |
| | |
| | | const BaseLedId = uni.getStorageSync('BaseLedId'); |
| | | const BasePort = uni.getStorageSync('BasePort'); |
| | | const BaseCrnId = uni.getStorageSync('BaseCrnId'); |
| | | const PROJ = uni.getStorageSync('UPROJ'); |
| | | const WMSURL = uni.getStorageSync('wmsUrl'); |
| | | const WMSPORT = uni.getStorageSync('wmsPort'); |
| | | const PROJ = uni.getStorageSync('UPROJ'); |
| | | that.baseUrl = PROJ; |
| | | that.baseIP = BaseIP; |
| | | that.baseLedId = BaseLedId; |
| | | that.basePort = BasePort; |
| | | that.baseCrnId = BaseCrnId; |
| | | that.wmsUrl = WMSURL; |
| | | that.wmsPort = WMSPORT; |
| | | that.baseCrnId = BaseCrnId; |
| | | |
| | | that.getIPConfig(); |
| | | |
| | |
| | | uni.setStorageSync('BaseLedId', this.baseLedId); |
| | | uni.setStorageSync('BasePort', this.basePort); |
| | | uni.setStorageSync('BaseCrnId', this.baseCrnId); |
| | | uni.setStorageSync('UPROJ', this.baseUrl); |
| | | uni.setStorageSync('wmsUrl', this.wmsUrl); |
| | | uni.setStorageSync('wmsPort', this.wmsPort); |
| | | uni.setStorageSync('UPROJ', this.baseUrl); |
| | | |
| | | this.ejectShow = false; |
| | | }, |
| | |
| | | if (that.baseUrl == 'http://undefined:undefined/undefined') { |
| | | return; |
| | | } |
| | | const wms = 'http://' + that.baseIP + ':' + that.wmsPort + '/' + that.wmsUrl; |
| | | console.log(wms); |
| | | let url = wms + '/appVersion/checkUpdate/' + that.version + '/' + type; |
| | | let url = this.wmsUrl + '/appVersion/checkUpdate/' + that.version + '/' + type; |
| | | uni.request({ |
| | | url: url, |
| | | method: 'GET', |
| | |
| | | this.$refs.upVersion.close(); |
| | | }, |
| | | downWgt() { |
| | | let that = this; |
| | | const wms = 'http://' + that.baseIP + ':' + that.wmsPort + '/' + that.wmsUrl; |
| | | const downloadUrl = wms + '/appVersion/downloadApp/' + that.filename; |
| | | let that = this; |
| | | const downloadUrl = this.wmsUrl + '/appVersion/downloadApp/' + that.filename; |
| | | uni.showLoading({ |
| | | title: '更新中……' |
| | | }); |