ソースを参照

Merge branch 'master' of http://221.182.8.141:11666/sujunlin/xld-gis-admin

XiaXxxxxx 1 年間 前
コミット
845e100931
2 ファイル変更59 行追加1 行削除
  1. 58 0
      public/sceneview.html
  2. 1 1
      src/views/resource/plat/item/SceneData.vue

+ 58 - 0
public/sceneview.html

@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<html lang="en" id="htmlRoot">
+
+<head>
+    <meta charset="UTF-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+    <meta name="renderer" content="webkit" />
+    <meta name="keywords" content="空间数据管理平台" />
+    <meta name="description" content="空间数据管理平台" />
+    <meta http-equiv="Expires" content="0" />
+    <meta http-equiv="Cache-control" content="no-cache" />
+    <meta http-equiv="Cache" content="no-cache" />
+    <title>空间数据管理平台</title>
+    <link rel="icon" href="/favicon.ico" />
+    <style>
+        body {
+            margin: 0;
+            padding: 0;
+            overflow: hidden;
+            -ms-overflow-style: none;
+            scrollbar-width: none;
+        }
+
+        body::-webkit-scrollbar {
+            display: none;
+        }
+    </style>
+</head>
+
+<body>
+    <script>
+        window.onload = function () {
+            var obj = JSON.parse(JSON.stringify(window.location.href));
+            var arr = obj.split("?")
+            if (arr.length && arr[1]) {
+                if (arr[1].indexOf("onlineIde_") > -1) {
+                    // creteIframe(`http://106.12.170.138:4001/examples/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
+                    // creteIframe(`http://127.0.0.1:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
+                    creteIframe(`http://192.168.193.88:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
+                } else {
+                    // creteIframe(arr[1])
+                    creteIframe(`http://192.168.119.143:8080/onemapV5.0/sceneview.html?${arr[1]}`)
+                }
+            }
+        }
+
+        function creteIframe(url) {
+            const iframe = document.createElement('iframe');
+            iframe.style.width = '100vw';
+            iframe.style.height = '100vh';
+            iframe.style.border = '0px';
+            iframe.src = url;
+            document.body.appendChild(iframe);
+        }
+    </script>
+</body>
+
+</html>

+ 1 - 1
src/views/resource/plat/item/SceneData.vue

@@ -28,7 +28,7 @@
           <div class="operation-box">
             <div class="left">
               <div class="operation-item browse-item-btn browse-item-MR00001936">
-                <a target="_blank" :href="`./mapview.html?${i.SERVICEID}`">
+                <a target="_blank" :href="`./sceneview.html?${i.SERVICEID}`">
                   <span>浏览</span>
                 </a>
               </div>