jiazx0107@163.com
2023-05-31 7a7ccfd74dbdff086d2aabe5117ec1dc6f804d91
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!DOCTYPE html>
<html lang="zh-cn" xmlns:th=http://www.thymeleaf.org>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<title>智能仓库管理系统-集团公司首页</title>
<meta name="description" content="智慧仓库管理系统-后台主页面">
 
<link rel="shortcut icon" th:href="@{/static/favicon.ico}" />
<link th:href="@{/static/css/bootstrap.min.css}" rel="stylesheet">
<link th:href="@{/static/css/font-awesome.min.css}" rel="stylesheet">
<link th:href="@{/static/css/animate.min.css}" rel="stylesheet">
<link th:href="@{/static/css/home.min.css}" rel="stylesheet">
<link th:href="@{/static/css/iconfont.css}" rel="stylesheet">
 
<style>
.roll-right.J_tabRight {
    right: 85px;
}
 
.navbar-header {
    width: 40%;
}
 
.roll-right.btn-group {
    right: 5px;
    width: 80px;
    padding: 0;
}
 
.center {
    text-align: center;
}
 
.title {
    font-size: 18px;
}
 
.img-circle {
    border-radius: 5px;
    height: 64px;
}
 
.layui-layer-def .layui-layer-title {
    background: #39aef5;
    color: #fff;
    border: none
}
 
.layui-layer-def .layui-layer-btn a {
    background: #39aef5
}
 
.layui-layer-def .layui-layer-btn .layui-layer-btn1 {
    background: #39aef5
}
 
.navbar-top-links li a {
    padding: 14px 20px 14px 25px;
    min-height: 50px;
}
 
.iconfont {
    /*     color: #39aef5 */
}
 
.skin-1 .navbar-static-top {
    background: #2f4050;
}
 
.footer {
    background: none repeat scroll 0 0 #fff;
    border-top: 1px solid #e7eaec;
    overflow: hidden;
    padding: 5px 5px;
    margin: 0 -15px;
    height: 30px;
    /*     font-weight: 600; */
}
 
/**取消技术支持 默认125 **/
#content-main {
    height: calc(100% - 100px);
    overflow: hidden;
}
 
#select_deptId {
    padding: 0 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    height: 30px;
    border-radius: 3px;
    background: #2f4050;
    color: #9ea6b9;
    border-width: 0px;
    font-weight: 600;
}
</style>
 
</head>
 
<body class="fixed-sidebar full-height-layout gray-bg skin-1" style="overflow: hidden">
    <div id="wrapper">
 
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close">
                <i class="fa fa-times-circle"></i>
            </div>
 
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <!-- 导航头开始 -->
                    <li class="nav-header">
                        <div class="dropdown profile-element center">
                            <span> <a th:href="@{/home-group}" target="_self"> <img
                                    alt="image" class="img-circle" th:src="${logo}" />
                            </a>
                            </span> <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear"> <span class="block m-t-xs"><strong
                                        class="font-bold title" th:text="${sysName}">智能粮库管理</strong>
                                </span> <span class="text-muted text-xs block"
                                    th:text="${loginUser.cname}">管理员<b class="caret"></b></span>
                            </span>
                            </a>
                            <ul class="dropdown-menu animated fadeInRight m-t-xs">
                                <li><a class="J_menuItem"
                                    href="./com.ld.igds.sys.UserCenter.d">个人中心</a></li>
                                <li class="divider"></li>
                                <li><a href="./log-out">安全退出</a></li>
                            </ul>
                        </div>
                        <div class="logo-element">粮库</div>
                    </li>
                    <!-- 导航头结束 -->
 
                    <!-- 菜单开始 -->
                    <li th:each="menu,menuSet : ${menuList}" class="tag_menu"><a
                        href="#"> <i th:class="${menu.icon}"></i> <span
                            th:text="${menu.name}" class="nav-label"></span> <span
                            class="fa arrow"></span>
                    </a> <!-- 二级菜单-->
                        <ul class="nav nav-second-level"
                            th:each="child,childSet : ${menu.children}">
                            <!-- 如果没有三级菜单 -->
                            <li th:if="${child.children.size()} eq 0"><a
                                class="J_menuItem" th:href="${child.url}"
                                th:text="${child.name}" th:target="${child.target}"></a></li>
 
                            <!-- 如果有三级菜单 -->
                            <li th:if="${child.children.size()}  gt 0"><a href="#"
                                th:text="${child.name}"><span class="fa arrow"></span></a>
                                <ul class="nav nav-third-level">
                                    <li th:each="child2,childSet : ${child.children}"><a
                                        class="J_menuItem" th:href="${child2.url}"
                                        th:text="${child2.name}" th:target="${child2.target}"></a></li>
                                </ul></li>
                        </ul></li>
                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
 
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation"
                    style="margin-bottom: 0">
                    <div class="navbar-header">
                        <a class="navbar-minimalize minimalize-styl-2 btn btn-primary "
                            href="#"><i class="fa fa-bars"></i> </a>
                    </div>
 
                    <ul class="nav navbar-top-links navbar-right">
                        <li class="dropdown hidden-xs"><span th:text="${dept.name}" style="color: #9ea6b9; font-weight: bold;"></span>
                        </li>
 
                        <li class="dropdown hidden-xs"><a href="./home-group"
                            target="_self"><i class="iconfont icon-zhuye"></i> 首页 </a>
                        </li>
 
                        <li class="dropdown hidden-xs"><a href="./basic/databoard/group" target="_blank"><i class="iconfont icon-zongheyewu"></i> 集团大屏 </a>
                        </li>
 
                        <li class="dropdown"><a class="dropdown-toggle count-info"
                            data-toggle="dropdown" href="#"> <i class="fa fa-bell">
                                    信息</i> <span class="label label-primary" id="home-msg-num">0</span>
                        </a>
                            <ul class="dropdown-menu dropdown-alerts" id="home-msg"
                                style="height: 650px; overflow-y: auto">
                                <li>
                                    <div class="text-center link-block">
                                        <a class="J_menuItem" href="javascript:;" onclick="cleanMsg()">
                                            <strong>清空所有</strong>
                                        </a>
                                    </div>
                                </li>
                            </ul></li>
                        <li class="hidden-xs"><a href="login.html"
                            data-index="0"><i class="fa fa fa-sign-out"></i> 退出</a></li>
                    </ul>
                </nav>
            </div>
            <div class="row content-tabs">
                <button class="roll-nav roll-left J_tabLeft">
                    <i class="fa fa-backward"></i>
                </button>
                <nav class="page-tabs J_menuTabs">
                    <div class="page-tabs-content">
                        <a href="javascript:;" class="active J_menuTab"
                            th:data-id="${welcomeUrl}">GIS导航</a>
                    </div>
                </nav>
                <button class="roll-nav roll-right J_tabRight">
                    <i class="fa fa-forward"></i>
                </button>
                <div class="btn-group roll-nav roll-right">
                    <button class="dropdown J_tabClose" data-toggle="dropdown">
                        操作<span class="caret"></span>
 
                    </button>
                    <ul role="menu" class="dropdown-menu dropdown-menu-right">
                        <li class="J_tabShowActive"><a>定位当前选项卡</a></li>
                        <li class="divider"></li>
                        <li class="J_tabCloseAll"><a>关闭全部选项卡</a></li>
                        <li class="J_tabCloseOther"><a>关闭其他选项卡</a></li>
                    </ul>
                </div>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe class="J_iframe" name="iframe0" width="100%" height="100%"
                    th:src="${welcomeUrl}" frameborder="0" th:data-id="${welcomeUrl}"
                    seamless></iframe>
            </div>
 
        </div>
        <!--右侧部分结束-->
    </div>
    <script th:src="@{/static/js/jquery.min.js}"></script>
    <script th:src="@{/static/js/bootstrap.min.js}"></script>
    <script th:src="@{/static/js/plugins/metisMenu/jquery.metisMenu.js}"></script>
    <script th:src="@{/static/js/plugins/slimscroll/jquery.slimscroll.min.js}"></script>
    <script th:src="@{/static/js/plugins/layer/layer.min.js}"></script>
    <script th:src="@{/static/js/hplus.min.js}"></script>
    <script th:src="@{/static/js/contabs.js}"></script>
    <script th:src="@{/static/js/plugins/pace/pace.min.js}"></script>
    <script th:src="@{/static/js/igds-common.js}"></script>
</body>
 
<script th:inline="javascript">
    window.onload = function () {
        //初始化展开第一个菜单
        if ($(".tag_menu")) {
            $(".tag_menu").first().addClass("active");
            $(".tag_menu").first().children("ul").addClass("in")
        }
    };
 
    //定义变量
    var companyId = [[${loginUser.companyId}]];
    var deptId = [[${deptId}]];//当前用户选择的分库ID,全局使用
    var bizType = [[${bizType}]];
    var userId = [[${loginUser.username}]];
    var dept = [[${dept}]];//当前用户所属部门
 
    var socket;
    window.msgNum = 0;
 
    // 初始化WebSocket
    initWS(deptId, bizType, null, userId);
 
    // socket信息返回處理
    function socketOnMessage(pocket) {
        //console.log(pocket);
        if ("ORDER_ERROR" == pocket.orderResp || "MSG_ERROR" == pocket.orderResp) {
            addMsg(pocket.data);
        }
        if ("LOGOUT" == pocket.orderResp) {
            window.location.href = "../login?tag=10";
        }
        window.parent.sysNotify(pocket.data);
    };
 
    //添加条件信息支持子页面的调用
    window.addMsg = function (msg) {
        msgNum++;
        var div = $("#home-msg");
        var html = "<li><a><div><i class='fa fa-envelope fa-fw'></i>" +
            msg + "</div></a></li><li class='divider'></li>";
        div.append(html);
        $("#home-msg-num").text(msgNum);
    }
 
    //清空信息
    function cleanMsg() {
        $("#home-msg").empty();
        $("#home-msg").append("<li><div class='text-center link-block'><a class='J_menuItem' href='javascript:;' onclick='cleanMsg()'><strong>清空所有</strong>" +
            "</a></div></li><li class='divider'></li>");
        $("#home-msg-num").text(0);
        msgNum = 0;
    };
 
    // 退出全屏
    function exitFullscreen() {
        var de = document;
        if (de.exitFullscreen) {
            de.exitFullscreen();
        } else if (de.mozCancelFullScreen) {
            de.mozCancelFullScreen();
        } else if (de.webkitCancelFullScreen) {
            de.webkitCancelFullScreen();
        }
        screen = true;
    }
 
    // 进入全屏
    function requestFullScreen() {
        var de = document.documentElement;
        if (de.requestFullscreen) {
            de.requestFullscreen();
        } else if (de.mozRequestFullScreen) {
            de.mozRequestFullScreen();
        } else if (de.webkitRequestFullScreen) {
            de.webkitRequestFullScreen();
        }
        screen = false;
    }
 
    function fullScreen() {
        var tag = $("#tagFullScreen");
        if (screen) {
            requestFullScreen();
            tag.html("<i class='glyphicon glyphicon-resize-small'></i>标准");
            return false;
        }
        if (!screen) {
            exitFullscreen();
            tag.html("<i class='glyphicon glyphicon-fullscreen'></i>全屏");
            return false;
        }
    };
</script>
</html>