surprise
2024-01-15 87e98d5b5efeb7a9cf6330ae03e6dd53699b7ef1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!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>