From bd87a8cd58035b9b0710b1fba8d07b2e6af28ad3 Mon Sep 17 00:00:00 2001 From: duxiaoning <17621883433@163.com> Date: Mon, 26 Aug 2024 21:19:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Daichuli/Feedback/Inspection/index.vue | 6 +++--- src/views/Daichuli/Feedback/index.vue | 14 +++++++------- vue.config.js | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/views/Daichuli/Feedback/Inspection/index.vue b/src/views/Daichuli/Feedback/Inspection/index.vue index d627797..371497a 100644 --- a/src/views/Daichuli/Feedback/Inspection/index.vue +++ b/src/views/Daichuli/Feedback/Inspection/index.vue @@ -280,10 +280,10 @@ export default { const pm = (self.productMsg = am.productMsg); self.geoWorkSpace = pm.geoWorkspace; self.geoLayerName = pm.geoLayerName; - // self.tifPath = pm.ftpPath; + self.tifPath = pm.ftpPath; //由于空天院内网服务无法拉取外网资源,先改成内网资源访问 - let rt = pm.ftpPath.split('/'); - self.tifPath = 'https://10.0.31.125:18030/inspection/files/' + rt[rt.length - 1]; + // let rt = pm.ftpPath.split('/'); + // self.tifPath = 'http://10.0.31.125:18030/inspection/files/' + rt[rt.length - 1]; self.projection = pm.projection; // 赋值真实性检验方法 diff --git a/src/views/Daichuli/Feedback/index.vue b/src/views/Daichuli/Feedback/index.vue index 6f4d0f3..90f348e 100644 --- a/src/views/Daichuli/Feedback/index.vue +++ b/src/views/Daichuli/Feedback/index.vue @@ -275,13 +275,13 @@ export default { async initOrderMsg() { const self = this; self.token = this.$route.query.token; - // const userMsg = await getUserInfo(self.token); - // if (userMsg.code === 200) { - // self.userId = userMsg.data.userid; - // self.userName = userMsg.data.username; - // localStorage.setItem("userId", self.userId); - // localStorage.setItem("userName", self.userName); - // } + const userMsg = await getUserInfo(self.token); + if (userMsg.code === 200) { + self.userId = userMsg.data.userid; + self.userName = userMsg.data.username; + localStorage.setItem("userId", self.userId); + localStorage.setItem("userName", self.userName); + } const orderId = (self.orderId = this.$route.query.orderId); getOrderMsg(orderId).then((res) => { if (res.code === 200) { diff --git a/vue.config.js b/vue.config.js index 9ca3396..529d14f 100644 --- a/vue.config.js +++ b/vue.config.js @@ -21,7 +21,7 @@ module.exports = { open: false, proxy: { [process.env.VUE_APP_BASE_API]: { - target: "https://124.16.188.131:28030", + target: "http://124.16.188.131:28030", changeOrigin: true, pathRewrite: { ["^" + process.env.VUE_APP_BASE_API]: "" @@ -35,16 +35,16 @@ module.exports = { } }, [process.env.VUE_APP_REALITY_API]: { - target: "https://124.16.188.131:28092/microwave", - // target: "http://192.168.1.79:18092/microwave", + // target: "https://124.16.188.131:28092/microwave", + target: "http://192.168.1.227:18092/microwave", changeOrigin: true, pathRewrite: { ["^" + process.env.VUE_APP_REALITY_API]: "" } }, [process.env.VUE_APP_FILE_API]: { - target: "https://124.16.188.131:28093/file", - // target: "http://192.168.1.79:18093/file", + // target: "https://124.16.188.131:28093/file", + target: "http://192.168.1.227:18093/file", changeOrigin: true, pathRewrite: { ["^" + process.env.VUE_APP_FILE_API]: ""