update code
parent
5edeac1084
commit
60961ec5d6
|
@ -18,7 +18,7 @@
|
|||
<script src="/cesium/jquery-3.0.0.min.js"></script>
|
||||
<script src="/cesium/Cesium.js?v=20230913"></script>
|
||||
<script src="/cesium/BIMGISEngine.js?v=20230913"></script>
|
||||
<script src="/cesium/initApi.js?v=20230913"></script>
|
||||
<script src="/cesium/initApi.js?v=20230919"></script>
|
||||
<script src="./js/mapmodle.js"></script>
|
||||
<!--
|
||||
<script crossorigin="anonymous" integrity="sha384-gb8mitZ44MWVFB3GKzmtx1OCjOh3Cj4mgusyTvNzl1Nu31l0em1FrApJindwVAe0"
|
||||
|
|
|
@ -21,12 +21,7 @@ window.mapDefault={
|
|||
"alpha": 1
|
||||
},
|
||||
"outlineScaleVal": 1.001,
|
||||
"selectedcolor": {
|
||||
"red": 1,
|
||||
"green": 1,
|
||||
"blue": 0,
|
||||
"alpha": 1
|
||||
},
|
||||
"selectedcolor": "#ff0000",
|
||||
"sceneMode": 3,
|
||||
"TwoMapNavigationEnable": false,
|
||||
"throughwall": true,
|
||||
|
|
|
@ -0,0 +1,104 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh-cn">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>泾河路网</title>
|
||||
<!-- 第一步:先引入相关css及js文件 -->
|
||||
<link rel="stylesheet" href="/cesium/Widgets/widgets.css">
|
||||
<script src="/cesium/jquery-3.0.0.min.js"></script>
|
||||
<script src="/cesium/Cesium.js"></script>
|
||||
<script src="/cesium/BIMGISEngine.js"></script>
|
||||
<style>
|
||||
/* 第三步:容器样式,根据自身业务调整,这里只做参考 */
|
||||
html,
|
||||
body,
|
||||
#cesiumContainer {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- 第二步:创建容器 -->
|
||||
<div id="cesiumContainer"></div>
|
||||
|
||||
<!-- 视图列表 -->
|
||||
<div class="panel">
|
||||
<div class="panel-heading">模型视图列表</div>
|
||||
<ul class="list-group layui-form">
|
||||
<input type="radio" lay-filter="view" name="view" value="house_rvt3dview4708954" title="3D视图" />
|
||||
<input type="radio" lay-filter="view" name="view" value="house_rvt" title="三维视图" checked />
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- 加载logo及遮罩层 -->
|
||||
<div id="box"></div>
|
||||
<div class="loading-shadow" id="LoadingShadow">
|
||||
<div class="loading-box mobile-loading-box">
|
||||
加载中....
|
||||
</div>
|
||||
</div>
|
||||
<!-- 第四步: 初始化Api -->
|
||||
<script src="/cesium/initApi.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
// 第五步:加载模型
|
||||
window.initMap();
|
||||
var api=window.mapApi
|
||||
window.mapApi.Model.add(
|
||||
"http://szgc.jhncidg.com:808/mapmodel/tools/output/model/202308292209049711/root.glt",
|
||||
'3a0d53cd-8774-6b32-a056-d69e2e12260e',
|
||||
|
||||
(data) => {
|
||||
console.log(data)
|
||||
if (Cesium.defined(data)) {
|
||||
if (Cesium.defined(data.obj) && data.obj instanceof Cesium.Cesium3DTileset) {}
|
||||
}
|
||||
},
|
||||
function (data) {
|
||||
$("#box,#LoadingShadow").hide()
|
||||
});
|
||||
api.Public.Event("LEFT_CLICK", function (click) {
|
||||
api.Feature.GetFeatureByEvent(click.position, function (json) {
|
||||
debugger
|
||||
if (json != undefined) {
|
||||
featureId = json.id.replace( '3a0d53cd-8774-6b32-a056-d69e2e12260e' + '^', '');
|
||||
mdldetailshow(featureId, 'type')
|
||||
}
|
||||
});
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
|
||||
function mdldetailshow(id, propertyTypeName) {
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: 'http://szgc.jhncidg.com:808/mapmodel/api/app/model/property-data-by-externalid',
|
||||
headers: {
|
||||
"Token": mapDefault.secretkey,
|
||||
'Content-Type': 'application/octet-stream'
|
||||
},
|
||||
data: {
|
||||
LightweightName: '202308292209049711',
|
||||
ExternalId: id
|
||||
},
|
||||
success: function (res) {
|
||||
debugger
|
||||
}});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -44,11 +44,12 @@ export default {
|
|||
|
||||
methods: {
|
||||
initImages(files){
|
||||
//let images=this.$tryToJson(files,[]).map(it=>it.name).filter(it=>it && ['jpg','jpeg','png'].includes(it.toLowerCase().split(".").pop()));
|
||||
//this.images=images;
|
||||
let images=this.$tryToJson(files,[]).map(it=>it.name).filter(it=>it && ['jpg','jpeg','png','gif','bmp'].includes(it.toLowerCase().split(".").pop()))
|
||||
.filter(d=>d.indexOf('总平')==-1);
|
||||
this.images=images;
|
||||
},
|
||||
initImgs(imgs){
|
||||
this.images=imgs||[];
|
||||
//this.images=imgs||[];
|
||||
},
|
||||
loadCss(id, href) {
|
||||
if (document.getElementById(id)) {
|
||||
|
@ -118,6 +119,10 @@ export default {
|
|||
function (data) {
|
||||
$("#box,#LoadingShadow").hide()
|
||||
});
|
||||
window.mapApi.Public.Event("LEFT_CLICK", function (click) {
|
||||
window.mapApi.Feature.GetFeatureByEvent(click.position, function (json) {
|
||||
});
|
||||
});
|
||||
}
|
||||
func();
|
||||
}
|
||||
|
|
|
@ -94,8 +94,11 @@
|
|||
<el-col :span="fontSize==2?12:12" class="item-data">
|
||||
<img src="images/title_icon.png"><span class="sp-lbl sp-lbl2">检测结果:</span>
|
||||
<div class="div-text">
|
||||
<el-tag v-if="it.detectionResult == '1'" type="success">合格</el-tag>
|
||||
<el-tag v-else type="danger">不合格</el-tag>
|
||||
<template v-if="it.detectionResult">
|
||||
<el-tag v-if="it.detectionResult == '1'" type="success">合格</el-tag>
|
||||
<el-tag v-else type="danger">不合格</el-tag>
|
||||
</template>
|
||||
<span v-else style="color: #67c23a;">送检中</span>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="fontSize==2?24:12" class="item-data">
|
||||
|
|
Loading…
Reference in New Issue