ansel0926
2022-05-17 00b733dc6ae372be365a01046ead5c062d8f5617
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html>
 
<head>
    <meta charset="UTF-8">
    <title>空间影响分析</title>
    <link rel="stylesheet" href="//at.alicdn.com/t/font_2599272_671fgrsk7ev.css">
    <link href="../../libs/layui/css/layui.css" rel="stylesheet">
    <script type="text/javascript" src="../../libs/jquery/jquery-3.5.1.min.js"></script>
    <script type="text/javascript" src="../../libs/layui/layui.js"></script>
    <script type="text/javascript" src="../../assets/js/common.js"></script>
 
    <style>
        .spatialdiv {
            color: white;
            overflow-x: hidden;
            overflow-y: auto;
            padding: 0;
        }
 
        .mt-label {
            height: 30px;
            color: white;
            width: 80px;
            float: left;
            margin-left: 10px;
            line-height: 30px;
            font-size: 12px;
        }
 
        .mt-content {
            height: 30px;
            color: white;
            width: 200px;
            float: left;
            /* margin-left: 10px; */
        }
 
        .mt-row {
            height: 30px;
            margin-left: 10px;
            margin-top: 10px;
        }
 
        .mt-tip {
            margin-left: 20px;
            margin-top: 15px;
        }
 
        .layui-slider {
            height: 4px;
            background: #f3ebeb;
            border-radius: 3px;
            position: relative;
            cursor: pointer;
            margin-top: 12px;
        }
 
        .layui-slider-bar {
            background: #1e9fff !important;
        }
 
        .layui-slider-wrap-btn {
            border: 2px solid #888 !important;
        }
        .layui-input{
            padding-left: 0px;
        }
        .layui-slider-input {
            width: 70px;
            height: 25px;
            border: 1px solid #e6e6e6;
            border-radius: 3px;
            font-size: 16px;
            line-height: 25px;
            position: absolute;
            right: 0;
            top: -14px;
            margin-top: 15px;
        }
 
        .mybtn {
            color: #fff;
            background-color: #1E9FFF;
            border-color: #1E9FFF
        }
        .mybtn2{
            color: #fff;
            background-color: #FFB800;
            border-color:#FFB800 ;
        }
    </style>
</head>
 
<body>
 
    <div class="spatialdiv">
        <div class="mt-row">
            <div class="mt-label">影响范围:</div>
            <div class="mt-content">
                <div id="far" style="width:  200px;float: left;"></div>
                <!-- <div class="float: left;width:100px">
                    <input type="number" id="distanceinput" autocomplete="off" class="form-control-small" value="100">
                </div> -->
            </div>
        </div>
        <div class="mt-row">
            <button type="button" class="layui-btn mybtn  layui-btn-sm"
                onclick="parent.createRadar('radar' + new Date().format('yyyyMMddhhmmss'),far)" style="margin-left: 20%;"> <i class="iconfont icon-kongjianyingxiang" style="font-size: 15px; color: white;"></i> 影响分析</button>
            <button type="button" class="layui-btn mybtn2  layui-btn-sm" onclick="parent.clearRadar()" style="font-size: 15px; color: white;"> <i class="iconfont icon-qingchu1"></i>清空</button>
        </div>
        <div class="mt-tip">空间影响分析单击左键确定坐标。</div>
    </div>
    <script>
        var far = 1000;
        layui.use('slider', function () {
            var $ = layui.$
                , slider = layui.slider;
 
            slider.render({
                elem: '#far'
                , min: 1 //最小值
                , max: 100000 //最大值
                , input: true //输入框
                , tips: false
                , value: 1000
                , change: function (value) {
                    far = value;
                }
            });
        });
 
 
    </script>
</body>
 
</html>