ansel0926
2022-05-15 ebc4c778854c8d2666b1bbaf3dcba2ba00f08453
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
<!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>
 
    <style>
          .windowdiv {
            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: 230px;
            float: left;
            /* margin-left: 10px; */
        }
 
        .mt-row {
            height: 30px;
            margin-top: 15px;
        }
 
        .form-control {
            /* display: block; */
            float: left;
            margin-left: 5px;
            width: 180px;
            height: 30px;
            padding: 4px 12px;
            font-size: 14px;
            line-height: 1.6;
            background-color: #2c3238;
            opacity: 0.8;
            color: #fff;
            background-image: none;
            border: 0px solid #e4eaec;
            border-radius: 3px;
            -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
            box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
            -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
            -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
            -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
            transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
            transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
            transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
        }
 
        .mybtn {
            color: #fff;
            /* background-color: rgba(32,160,255,.2); */
            background-color: #4db3ff;
            border-color: #4db3ff;
        }
 
 
    </style>
</head>
 
<body>
    <div class="windowdiv">
 
        
     
        <div class="mt-row">
            <div class="mt-label">场景尺寸:</div>
            <div class="mt-content">
                  <input style="margin-top: 8px;margin-left: 5px;" type="radio" title="剖面" name="size" value="1" checked="true">原图
                  <input style="margin-top: 8px;margin-left: 5px;" type="radio" title="切块" name="size" value="2">1/2缩略
                  <input style="margin-top: 8px;margin-left: 5px;" type="radio" title="开挖" name="size" value="4">1/4缩略
            </div>
        </div>
 
        <div class="mt-row">       
            <div class="mt-content">
                <button type="button" style="margin-left: 42%;" class="layui-btn mybtn  layui-btn-sm" onclick="download()"> <i class="iconfont icon-xiazai" style="font-size: 15px; color: white;"></i>  保存</button>
            </div>
        </div>   
        <div class="mt-row">       
            <span style="margin-left: 20px;">提示:图片导出为当前屏幕内的场景</span>
         </div>
 
    </div>
 
    <script>
        function download() {
            var size=$("input[name='size']:checked").val();
            parent.exportScenePic(size);  
        }
 
    </script>
</body>
 
</html>