From 22bf3f83272ef892c595ef568f69bfd87deca073 Mon Sep 17 00:00:00 2001 From: "Mr.Dong" <1756465965@qq.com> Date: Wed, 12 Feb 2025 11:48:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E5=A4=84=E7=90=86=E6=A3=80=E9=AA=8C?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=A8=A1=E5=9D=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/pendingOrder.js | 11 +++ src/components/home/parameter/index.vue | 10 +- src/components/home/testProduct/index.vue | 6 +- src/lib/cesiumUtils.js | 2 +- src/lib/request-microwave.js | 2 +- src/lib/request.js | 4 +- src/views/About.vue | 17 ++-- src/views/Daichuli/Feedback/index.vue | 113 ++++++++++++++-------- src/views/Daichuli/index.vue | 5 +- vue.config.js | 2 +- 10 files changed, 112 insertions(+), 60 deletions(-) diff --git a/src/api/pendingOrder.js b/src/api/pendingOrder.js index 36d3bf9..d8fc181 100644 --- a/src/api/pendingOrder.js +++ b/src/api/pendingOrder.js @@ -26,6 +26,7 @@ export function getProductMetaMsg(data) { return realityRequest({ url: "common/getMetadataInfo", method: "post", + headers: { "Content-Type": "application/json" }, data }); } @@ -56,6 +57,16 @@ export function getProductMsg(data) { }); } +export function getOrderAndProduct(data) { + return microwaveRequest({ + url: "validationOrder/getOrderAndProduct", + method: "post", + headers: { "Content-Type": "application/json" }, + data + }); +} + + //更新订单编辑状态 export function updateOrderStatus(orderId) { return microwaveRequest({ diff --git a/src/components/home/parameter/index.vue b/src/components/home/parameter/index.vue index b437000..34645ce 100644 --- a/src/components/home/parameter/index.vue +++ b/src/components/home/parameter/index.vue @@ -851,13 +851,13 @@ export default { } }, flyToThePro(tifPath) { - getProductMetaMsg(qs.stringify({ dataPath: tifPath })).then((res) => { + getProductMetaMsg(JSON.stringify({ dataPath: tifPath })).then((res) => { if (res !== null) { cu.flyToLayerRect( - res.boundBoxMinX, - res.boundBoxMinY, - res.boundingBoxMaxX, - res.boundBoxMaxY + res.data.boundBoxMinX, + res.data.boundBoxMinY, + res.data.boundingBoxMaxX, + res.data.boundBoxMaxY ); } }); diff --git a/src/components/home/testProduct/index.vue b/src/components/home/testProduct/index.vue index 27e5a86..d665da9 100644 --- a/src/components/home/testProduct/index.vue +++ b/src/components/home/testProduct/index.vue @@ -689,11 +689,11 @@ export default { fileFormat: this.showCKPlan.productMsg.fileFormat, }); getProductMsg(qs.stringify({ productId: productId })).then((res) => { - if (res || res.length !== 0) { - const r = res[0]; + if (res.code == 200) { + const r = res.data[0]; this.productData[0].uploadDate = r.uploadDate; this.tifPath = r.tifPath; - getProductMetaMsg(qs.stringify({ dataPath: r.tifPath })).then( + getProductMetaMsg(JSON.stringify({ dataPath: r.tifPath })).then( (res) => { if (res !== null) { (this.pData.satellite = this.changeSatName( diff --git a/src/lib/cesiumUtils.js b/src/lib/cesiumUtils.js index 46f942b..98b70eb 100644 --- a/src/lib/cesiumUtils.js +++ b/src/lib/cesiumUtils.js @@ -26,7 +26,7 @@ class CesiumUtils { mapMode2D: Cesium.MapMode2D.INFINITE_SCROLL, imageryProvider: new Cesium.WebMapTileServiceImageryProvider({ url: - "https://{s}.tianditu.gov.cn/img_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=d7648495378ad7ebe74327207dfc09a8", + "https://{s}.tianditu.gov.cn/img_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=f679e73fcff0fa8d9b89dc052c35624b", layer: "tdtBasicLayer", style: "default", maximumLevel: 18, diff --git a/src/lib/request-microwave.js b/src/lib/request-microwave.js index 88a19f3..1c2f005 100644 --- a/src/lib/request-microwave.js +++ b/src/lib/request-microwave.js @@ -4,7 +4,7 @@ import { Message } from "element-ui"; // create an axios instance const service = axios.create({ baseURL: process.env.VUE_APP_MICROWAVE_API, // url = base url + request url - // baseURL: 'http://10.0.31.126:8086/macApi/', // url = base url + request url + // baseURL: 'http://192.168.1.205:8086/macApi/', // url = base url + request url timeout: 5000000 // request timeout }); diff --git a/src/lib/request.js b/src/lib/request.js index 9c49c8e..63e5914 100644 --- a/src/lib/request.js +++ b/src/lib/request.js @@ -3,8 +3,8 @@ import { Message } from "element-ui"; // create an axios instance const service = axios.create({ - // baseURL: process.env.VUE_APP_BASE_API, - baseURL: "https://caplos.aircas.ac.cn/lxyweb/", // url = base url + request url + baseURL: process.env.VUE_APP_BASE_API, + // baseURL: "https://caplos.aircas.ac.cn/lxyweb/", // url = base url + request url timeout: 5000000 // request timeout }); diff --git a/src/views/About.vue b/src/views/About.vue index 2ba9474..a597baa 100644 --- a/src/views/About.vue +++ b/src/views/About.vue @@ -129,22 +129,27 @@ export default { let routeHerf = null; switch (key) { case "/": - routeHerf = `${LXYLOGIN_URL}`; + // routeHerf = `${LXYLOGIN_URL}`; + this.$router.push("/"); break; case "/daichuli": - routeHerf = `${DAICHULI_URL}`; + // routeHerf = `${DAICHULI_URL}`; + this.$router.push("/daichuli"); break; case "/yichuli": - routeHerf = `${YICHULI_URL}`; + // routeHerf = `${YICHULI_URL}`; + this.$router.push("/yichuli"); break; case "/daishenhe": - routeHerf = `${DAISHENHE_URL}`; + // routeHerf = `${DAISHENHE_URL}`; + this.$router.push("/daishenhe"); break; case "/yishenhe": - routeHerf = `${YISHENHE_URL}`; + // routeHerf = `${YISHENHE_URL}`; + this.$router.push("/yishenhe"); break; } - window.location.href = routeHerf; + // window.location.href = routeHerf; }, // 面包屑数据处理 getBreadcrumb() { diff --git a/src/views/Daichuli/Feedback/index.vue b/src/views/Daichuli/Feedback/index.vue index 4bc65b0..cf37a20 100644 --- a/src/views/Daichuli/Feedback/index.vue +++ b/src/views/Daichuli/Feedback/index.vue @@ -88,9 +88,9 @@