update code

dev
haha 2024-06-24 00:05:53 +08:00
parent 689f0ad2a6
commit f46b81f84a
4 changed files with 67 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1.0, initial-scale=1.0" />
<title>Document</title>
<script src="./BIMGISEngine.js"></script>
<style type="text/css">
body,html{
padding:0px;
margin: 0px;
overflow: hidden;
}
</style>
</head>
<body style="padding: 0px;">
<div id="gl_UEgineContainer" style="position: absolute;width:100%;height:100vh"></div>
<script>
//配置参数
// 第四步: 初始化Api
var filepath =
"http://192.168.126.200:81/Tools/output/model/5511735543582612394/root.glt"; //模型加载地址填写至此
//filepath="http://192.168.126.200:81/Tools/output/model/Examples/root.glt"
var api = new SAPI(
{
serverIP: `192.168.126.200`, //服务ip地址
port: 8000, //HTTP端口
container: `gl_UEgineContainer`, //[必须]容器id
secretKey:
"cbe8c300dfb0280d71bf6546087c6d2fa49260085f53fca8c7985b43ea81b20dc358fbf858d10d7d3324f9ea70b0331d8dc2c9223128b097ca22b68a6474753f258c47f45b34485a2edb350010e2f42cd5b388af45c6b070850288d284cbbbcd3d9dece4fe3612ac3050ceb8c6f96167dacbb11feb139bdc581d2bb89c4c29963d94c9cac057787beefd6fdb7b7fcace76d20ae002407410817c63b8ada364828a94867b381ae88ecd6668e8ca6b6d286dce7e5d799b0a175d5afe5554a43322fe0821394937a5ec4e7b1a14ad027992dae362b7584e5908b9db97bf945b86ad9d102172b1f90bd23013404ec41c18c93282a8f0c4278b094aac2870036e9468918c6819c02334fbc0f8ac6323953580d32b1cdbecb9bf3a247a6ca71dc6cfdf5ff49ef171f53e3084d7cfa131fd75565dccbfab533a0fef277050951ab91fcb8da15cff8a0a81ef5d5afe5554a43322fe0821394937a5ec4e7b1a14ad027992dae362b7584e5908b9db97bf945b86ad385ce2c805b0590210a8d2386e4f0a467b61e5b39a0300e7184d8dbba49a8569a30af95bbcb8a935ccd8737a8d59b0cca4d53873574d062a3a6090d0f582280ba3a7aebc0a7081f10629576cd3e789641f913957c57308994fdc9df330134f94052efc320a8c1a143e939c0e3b1ad476cf3630a2823a9a2d90e800d9b0be613ba7550ed054853e32510f8a6ea5c1dff9c3d61f7cf5f649cb25f0dbad9f7f66e3b446946685cead0cfac91bea061f4ff49a2f853c245297edc3d61f7cf5f649cb0f9b84173857a7b67c27928b58b4a6a65f517a43f106335ecc43571d292f54baa4596f82cf86665b367e01045009c18a2b543696b93a5bd44ca8168b5252351564bd9c490f16c1dea9075f305b1a7def6c4ca2f14918862751c9e2d23ef0bdaf41a12aca7dc1e17d6d0dca7bbdc42edf9c6396ffcf10044da26ecd334722494fc515b205e9624a4468762f63f0143583d1eeaaa85ff95ee50d8f953f44140ab40f29957f914b2241b8b27d8339b99808ee5afe26e9586ab5d8af37e5c4ae79e6405163f66e9923582cb5306674c6b68b830e510037806b9875f87ee7f76c8bdb0accf57366c2592cfabfd8a259742c4425f74ed075c660e38156b326e2f4461369f266ad62ac2edf64d1767ac6ea3d83c9ba33a4517541406791c384c597539cc1ffcdbe8f3563a1b379ce7a4782c59d98e1a918296acf4d25cb6d36cd9ab509afd54a7169bd5ac9799b7f642ad3588d5af5d673a07f23ae31cca9890fec461948b71b5d3292dc1088d769b6cce52fe1da21a053b44a16e15e3f8253971ef20b10b7b200fbc7c3d3f71e19f74e660313cf3630a2823a9a2d0acd9cb22f32e975d8b70082aab5ddbcb644d89a77efad286dee59796b124081510f8a6ea5c1dff9cb0f31d9a93422d1de95a0001376b8d685af667dd7ebaf4bdfc4840ac1126277417910a2ed0df6e3ca2026459a491059689206d702832f51afafd0506174e868c12cc462769b2e685be04514c976edd04ca2ef020dc56bee8321afe91a1dcbb1afafd0506174e8680f18f43fcd13957eef440c21db889c81888bce192514399191b48af868eda487753151533a27704469e5635404d6fdfb753151533a277044afdd825f7197f289753151533a27704484b9cf9eccaf749638930dbe9049f2ae36689b286e75a81e016aa63061505f57a8c1113b833628e3a18dff8ae8ac8eaa7a4fba6045bc9b4b", // token.txt文件内容填写至此
openEarth: false, //[可选]开启场景
bgColor: "rgba(135 ,206 ,250,1)", //[可选]bim模式场景背景色
sceneTime: [8, 2022, 2, 14, 13, 0], //[可选]场景时间
},
() => {
console.log("初始化成功"); //初始化成功后在进行其他操作,如加载模型等;
api.Model.add(
filepath, //模型加载地址
"175",
() => {
console.log("模型加载成功");
},
{
FlyTo: true,
}
);
}
);
</script>
</body>
</html>

View File

@ -298,6 +298,12 @@ export default {
return it;
})]
}
if(this.localStorage1==null){
this.localStorage1={text: '产发集团', id: 0};
}
if(this.localStorage2==null){
this.localStorage2={};
}
this.setScreenLiSel1(this.localStorage1,true);
this.checkIsDetailSubPage();
});
@ -376,6 +382,12 @@ export default {
try {
this.localStorage1 = JSON.parse(localStorage.getItem("data1"))
this.localStorage2 = JSON.parse(localStorage.getItem("data2"))
if(this.localStorage1==null){
this.localStorage1={};
}
if(this.localStorage2==null){
this.localStorage2={};
}
} catch (e) {
}

View File

@ -41,7 +41,10 @@
</el-col>
<el-col :span="12">
<module-one-2-1 class="center-image" label="集团项目区域分布">
<iframe src="http://192.168.126.200:12020/#/model/3a13046b-f33a-4754-ed84-48246d128ca1" style="width:100%;height:100%;border:none"></iframe>
<!--
<iframe src="newmap/index.html" style="width:100%;height:100%;border:none" ></iframe>
-->
<!--
<iframe src="#/map" style="width:100%;height:100%;border:none" v-if="!isLocalhost"></iframe>
-->