From 44517cf9375441d8a84808ca52d7ce474d8e0b17 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期六, 15 四月 2023 15:21:28 +0800
Subject: [PATCH] 地图更改为本地服务,柱状图效果更改

---
 src/components/mapol.vue |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/components/mapol.vue b/src/components/mapol.vue
index 51876c4..ad45c74 100644
--- a/src/components/mapol.vue
+++ b/src/components/mapol.vue
@@ -121,11 +121,14 @@
         ]),
         interactions: defaultInteractions().extend([new DragRotateAndZoom()]),
       })
-
+      var base_ulr = window.sceneConfig.baseUrl;
+      if (base_ulr.indexOf('{host}') > -1) {
+        base_ulr = base_ulr.replace("{host}", iisHost)
+      }
       window.olBaseMapLayer = new TileLayer({
         title: "楂樺痉鍦板浘",
         source: new XYZ({
-          url: gaoDeBaseUrl[1].url,
+          url: base_ulr,
           wrapX: false
         })
       });
@@ -362,7 +365,7 @@
   justify-content: center;
   align-items: center;
   cursor: pointer;
-  border: 1px solid rgba(255,255,255,.5);
+  border: 1px solid rgba(255, 255, 255, 0.5);
   //position: absolute;
   //bottom: 1%;
   //left: calc(1% + 75px);
@@ -395,7 +398,7 @@
   background-repeat: no-repeat;
   background-size: contain;
 }
-.changeLayer{
+.changeLayer {
   position: absolute;
   bottom: 84px;
   right: 46px;
@@ -406,6 +409,6 @@
   justify-content: center;
   align-items: center;
   cursor: pointer;
-  border: 1px solid rgba(255,255,255,.5);
+  border: 1px solid rgba(255, 255, 255, 0.5);
 }
 </style>

--
Gitblit v1.9.3