YYC
2023-07-04 585e878b169bdeb2bc8cc452b9d2e640d00caa6d
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html lang="zh-cn" xmlns:th=http://www.thymeleaf.org>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>智慧粮库管理平台-灯控管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet"
          th:href="@{../../static/plugins/layui/css/layui.css}" media="all">
    <style>
        html, body, .full {
            width: 100%;
            height: 100%;
            overflow-y: hidden;
        }
 
        #m-container {
            /*background: #cae3ed url(../../static/img/aerial-5013.png) left top no-repeat;*/
            background-repeat: no-repeat;
            background-size: 100% 100%;
            -moz-background-size: 100% 100%;
        }
 
        .areation-center {
            text-align: center;
        }
 
        .m10 {
            margin: 10px;
        }
 
        .rkbk-quick-btn {
            height: 45px;
            width: 185px;
            display: inline-block;
            line-height: 40px;
            font-size: 16px;
        }
 
 
        .rkbk-quick-btn i img {
            height: 18px;
            margin-right: 5px;
        }
 
        .btn-green {
            background-color: #8bc16a;
        }
 
        .btn-violet {
            background-color: #7494d1;
        }
 
        .btn-red {
            background-color: #e37878;
        }
 
        .btn-blue {
            background-color: #53adce;
        }
 
        .device {
            position: absolute;
        }
 
        .device img {
            width: 35px;
        }
 
        span {
            color: red;
            margin-left: 5px;
            font-size: 16px;
            font-weight: bold;
        }
    </style>
</head>
<body>
 
<div class="full" id="m-container">
    <div style="float: right; padding-top: 3px;">
        <span id="fire_info">提示:</span>
 
        <div class="layui-btn-group">
            <button type="button" class="layui-btn" id='btnA' onclick="cut('A')">显示仓外
            </button>
            
            <button type="button" class="layui-btn layui-btn-primary" id='btnB' onclick="cut('B')">显示仓内
            </button>
        </div>
 
        <div class="layui-btn-group">
            <button type="button" class="layui-btn layui-btn-warm" onclick="query()">刷新页面
            </button>
            <button type="button" class="layui-btn layui-btn-warm" onclick="queryAllStatus()">刷新状态
            </button>
        </div>
 
        <div class="layui-btn-group">
            <button type="button" class="layui-btn layui-btn-normal" onclick="executeALL('OPEN')">库区全开
            </button>
            
            <button type="button" class="layui-btn layui-btn-normal" onclick="executeALL('CLOSE')">库区全关
            </button>
        </div>
        <div class="layui-btn-group">
            <button type="button" class="layui-btn" onclick="dragDevice()">移动</button>
            <button type="button" class="layui-btn" onclick="updatePos()">保存</button>
        </div>
    </div>
 
</div>
 
<script th:inline="javascript">
    //系统登陆人
    var loginUser = [[${loginUser}]];
    //业务类型
    var bizType = [[${bizType}]];
    //userId
    var userId = [[${loginUser.username}]];
    var companyId = [[${loginUser.companyId}]];
    var deptId = [[${deptId}]];
    //照明设备列表
    var listDevice = [[${listDevice}]];
 
    var backgroundImg = [[${backgroundImg}]];
</script>
 
<script th:src="@{../../static/plugins/layui/layui.js}"></script>
<script th:src="@{../../static/js/jquery.min.js}"></script>
<script th:src="@{../../static/plugins/drag/drag-drop.js}"></script>
<script th:src="@{../../static/js/constant.js}"></script>
<script th:src="@{../../static/js/igds-common.js}"></script>
<script th:src="@{../../static/admin/lamp/lamp-default.js}"></script>
</body>
 
<!-- 弹出框-操作框-->
<div class="layui-tab-content areation-center" id="control-FK"
     style="display: none;">
    <div class="layui-btn-container m10">
        <button class="rkbk-quick-btn layui-btn btn-violet"
                onClick="executeIn('OPEN')">
            <i><img th:src="@{../../static/images/icon-sm-fc.png}"/></i>仓内全开
        </button>
        <button class="rkbk-quick-btn layui-btn btn-red"
                onClick="executeIn('CLOSE')">
            <i><img th:src="@{../../static/images/icon-sm-fc.png}"/></i>仓内全关
        </button>
    </div>
    <div class="layui-btn-container m10">
        <button class="rkbk-quick-btn layui-btn btn-violet"
                onClick="executeOut('OPEN')">
            <i><img th:src="@{../../static/images/icon-sm-k.png}"/></i>仓外全开
        </button>
        <button class="rkbk-quick-btn layui-btn btn-red"
                onClick="executeOut('CLOSE')">
            <i><img th:src="@{../../static/images/icon-sm-g.png}"/></i>仓外全关
        </button>
    </div>
</div>
 
</html>