<!DOCTYPE html>
|
<html>
|
|
<head>
|
<meta charset="UTF-8">
|
<title>模型压平高度</title>
|
<link href="../SmartEarthSDK/Workers/layui/css/layui.css" rel="stylesheet" />
|
<!-- <link rel="stylesheet" href="../../css/Analysis/AnalysisContour.css"/>-->
|
<style type="text/css">
|
.iptline1 {
|
position: absolute;
|
top: 9px;
|
right: -30px;
|
font-weight: bold !important;
|
}
|
|
.layui-input {
|
background-color: white;
|
}
|
|
.layui-form-label {
|
font-weight: bold !important;
|
font-size: 15px;
|
}
|
|
.layui-form {
|
margin-top: 10px;
|
}
|
|
.layui-input-block {
|
margin-left: 100px;
|
min-height: 36px;
|
}
|
.layui-btn{
|
background-color: rgba(0, 168, 255, 0.16) !important;
|
}
|
</style>
|
</head>
|
|
<body>
|
|
<form class="layui-form" action="">
|
<div class="layui-form-item" style="width: 280px; margin-top: 6px;">
|
<label class="layui-form-label " style="margin-left:-26px; width:100px;color: white;">压平高度</label>
|
<div class="layui-input-inline">
|
<input id="height" value="" type="number" lay-verify="pass" autocomplete="off" placeholder="请输入压平高度"
|
class="layui-input" >
|
<!-- onkeyup="value=value.replace(/[^\d\.\-]/g,'')" -->
|
<span class="iptline1">(米)</span>
|
</div>
|
</div>
|
</form>
|
<!-- <script src="../../js/Analysis/Quantityexcavation.js"></script> -->
|
<script src="../jquery-2.0.3.js"></script>
|
<script src="../SmartEarthSDK/Workers/layui/layui.js"></script>
|
<script src="./js/Analysis.js"></script>
|
<script>
|
var layer = parent.layer;
|
var data = parent.ModelFlattenData;
|
// $('#height').val(data.height.toFixed(1));
|
$('#height').val(0);
|
$('#height').on("input propertychange", function (event) {
|
if ($(this).val() === '') return;
|
data.height = parseFloat($(this).val().replace(/[^\d\.\-]/g, ''));
|
data.Flatten3DTileSetAnModels.forEach(function (tileset) {
|
var heightBg = 0;
|
if (data.height > 0) {
|
heightBg = (data.height + 15);
|
}
|
else {
|
heightBg = 15 - Math.abs(data.height);
|
}
|
parent.CreateModifyMesh("aaaa", data.positions, heightBg, tileset, {});
|
});
|
});
|
</script>
|
</body>
|
|
</html>
|