From 757d1202baa6df29807184fe715f01e8a3efd9e2 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期二, 13 一月 2026 10:00:29 +0800
Subject: [PATCH] #
---
Monitor-APP/pages/home/home.vue | 34 +++++++++++-----------------------
1 files changed, 11 insertions(+), 23 deletions(-)
diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue
index 336b75e..29ee949 100644
--- a/Monitor-APP/pages/home/home.vue
+++ b/Monitor-APP/pages/home/home.vue
@@ -333,11 +333,12 @@
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() {
@@ -354,16 +355,12 @@
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;
@@ -371,16 +368,12 @@
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();
@@ -665,9 +658,7 @@
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;
},
@@ -699,9 +690,7 @@
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',
@@ -730,9 +719,8 @@
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: '鏇存柊涓�︹��'
});
--
Gitblit v1.9.1