2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
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
346
347
348
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:layout="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title th:text="${systemName}"></title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <meta content="" name="description" />
    <meta content="" name="author" />
 
    <link rel="stylesheet" th:href="@{${pubzyWebRoot} + 'BootStrap4/assets/css/style.css'}" />
    <link rel="stylesheet" th:href="@{${pubzyWebRoot} + 'BootStrap4/expand/css/bootstrap-extract.css'}" />
    <link th:href="@{${pubzyWebRoot} + 'media/css/landtool.css'}" rel="stylesheet" type="text/css" id="style_color" />
    <link rel="shortcut icon" th:href="@{${pubzyWebRoot} + 'media/image/favicon.ico'}" />
    <script th:src="@{${pubzyWebRoot} + 'media/js/jquery-1.11.1.js'}"></script>
    <script th:src="@{${pubzyWebRoot} + 'BootStrap4/expand/plugins/layer/layer.js'}"></script>
    <script th:src="@{${pubzyWebRoot} + 'BootStrap4/assets/js/tether.min.js'}"></script>
    <script th:src="@{${pubzyWebRoot} + 'BootStrap4/assets/js/bootstrap.min.js'}"></script>
    <style>
        .DTFW_smenu {
            min-width: 96px;
            height: 35px;
            line-height: 35px;
            float: left;
            box-sizing: content-box;
            margin: 12px 1px;
            padding: 0 1px;
            color: #003899;
        }
 
        .DTFW_smenu_active {
            min-width: 96px;
            height: 35px;
            line-height: 35px;
            float: left;
            box-sizing: content-box;
            margin: 12px 1px;
            padding: 0 1px;
            border-radius: 15px;
            background-color: #EEE683;
            color: #777137;
        }
 
        .ZYZX_smenu {
            min-width: 96px;
            height: 35px;
            line-height: 35px;
            float: left;
            box-sizing: content-box;
            margin: 12px 8px;
            padding: 0 5px;
            color: #003899;
        }
 
        .ZYZX_smenu_active {
            min-width: 96px;
            height: 35px;
            line-height: 35px;
            float: left;
            box-sizing: content-box;
            margin: 12px 8px;
            padding: 0 5px;
            border-radius: 15px;
            background-color: #EEE683;
            color: #777137;
        }
 
        #menu a {
            margin: 0;
            padding-left: 0px;
            padding-right: 0px;
        }
 
        @media (max-width: 1279px) {
            #menu_aqtc {
                display: none;
            }
 
            #menu_xtsz {
                display: none;
            }
        }
 
        .header.navbar-fixed-top {
            z-index: 2 !important;
        }
 
        /*底部边距(原版权区域)*/
        .page-footer-fixed .page-container {
            margin-bottom: 0 !important;
        }
 
        body {
            padding-bottom: 0px !important;
        }
    </style>
</head>
<body class="page-header-fixed page-sidebar-fixed page-footer-fixed">
<div class="header navbar navbar-inverse navbar-fixed-top" style="border:none;padding: 0;">
    <div th:replace="MasterPage/Header :: TopMenu"></div>
</div>
<div id="bts_pagebody" class="page-container row" layout:fragment="content" style="margin-top:92px;display: table;width:100%;margin-right: 0;margin-left: 0;">
 
</div>
<script th:inline="javascript">
    /*<![CDATA[*/
    var backstageWebRoot = [[${backstageWebRoot}]];
    var gisPortal = [[${gisPortal}]];
    var staticFileRoot = "";
    var resizefunc = [];
    var curMenu = "";
 
    jQuery(document).ready(function () {
        // initiate layout and plugins
        try {
            var param = window.location.search;//获取地址参数
            var arr = param.replace("?", "").split('&');
            for (var i = 0; i < arr.length; i++) {
                if(arr[i].indexOf("Menu=") > -1) {
                    if (arr[i].indexOf("Menu=ZYZX")>-1) {
                        $("#Menu_DTFW").css("display", "none");
                        $("#Menu_ZYZX").css("display", "");
                        $("#logo_Img").attr("src", "/image/TopMenu/ziyuanzhongxin_logo.jpg");
                    } else {
                        $("#Menu_DTFW").css("display", "");
                        $("#Menu_ZYZX").css("display", "none");
                        $("#logo_Img").attr("src", "/image/TopMenu/ditufuwu_Logo.jpg");
                    }
                    break;
                }
            }
 
            var url = window.location.href;
            getMenuTitle(url);//设置当前所属菜单
        }
        catch (e) {
 
        }
    });
 
    $(function () {
        NewTimer();
 
        //获取登录用户中文名
        $.ajax({
            url: '/sys/user/getUserName',
            type: "GET",
            dataType: 'jsonp',
            callback: "callback",
            data: { },
            success: function(data) {
                $("#UserName").text(data.msg);
            },
            error: function (e) {
                alert("获取登录用户信息失败!");
            }
        });
 
        //菜单栏判断放中间还是浮动在上层靠右显示  alter ykm 2018/12/10
        menufun();
        window.onresize = function () {
            menufun();
        }
    });
 
    function menufun() {
        var x = document.body.clientWidth;
        if(x-653<500) {
            $("#logo_div").css("float","");
            $("#menu").css("margin-left","");
            $("#menu").css("margin-top","-92px");
 
            $("#menu_div").css("float","right");
            $("#menu_div").css("position","relative");
            $("#menu_div").css("z-index","1");
        }
        else {
            $("#logo_div").css("float","left");
            $("#menu").css("margin-left","652px");
            $("#menu").css("margin-top","");
 
            $("#menu_div").css("float","");
            $("#menu_div").css("position","");
            $("#menu_div").css("z-index","");
        }
    }
 
    function SetMenu(obj, flag) {
        var menuType = "";
        var imgUrl = "";
        if(obj.className.indexOf("DTFW_") > -1) {
            menuType = "DTFW_";
        } else if(obj.className.indexOf("ZYZX_") > -1){
            menuType = "ZYZX_";
        }
        if (flag == "over") {
            obj.className = menuType + "smenu_active";
            imgUrl = $(obj).children().find("img").attr("src");
            if($(obj).children().find("img").attr("src").indexOf("_on.png") < 0) {
                $(obj).children().find("img").attr("src", imgUrl.replace(".png", "_on.png"));
            }
        }
        else {
            if (curMenu != undefined) {
                if (($(obj).find("span").text())!=(curMenu)) {
                    obj.className = menuType + "smenu";
                    imgUrl = $(obj).children().find("img").attr("src");
                    $(obj).children().find("img").attr("src", imgUrl.replace("_on.png", ".png"));
                }
            }
        }
    }
 
    //根据URL确定当前用户是在哪个模块,并调整样式
    function getMenuTitle(url) {
        var arr = url.split('?');   //截取网址后面的参数字符串(包含menuId)
        if (arr.length == 2) {
            var a = $("#menu a");
            for (var i = 0; i < a.length; i++) {
                if (a[i].attributes["link"] != null) {
                    //var paramArr = a[i].attributes["link"].value.split('?');
                    if (a[i].attributes["link"].value != "") {// && paramArr.length > 1
                        var tragetParam = "";   //配置文件URL中menuId的部分
                        tragetParam = a[i].attributes["link"].value;
                        var menuType = "";
                        if (GetArgument(arr[1], "menuId") == tragetParam) {
                            if(a[i].childNodes[1].className.indexOf("DTFW_") > -1) {
                                menuType = "DTFW_";
                            } else if(a[i].childNodes[1].className.indexOf("ZYZX_") > -1){
                                menuType = "ZYZX_";
                            }
                            a[i].childNodes[1].className = menuType + "smenu_active";
                            curMenu = $(a[i].childNodes[1]).find("span").text();//a[i].childNodes[1].innerText.trim();
                            var imgUrl = $(a[i].childNodes[1]).children().find("img").attr("src");
                            if($(a[i].childNodes[1]).children().find("img").attr("src").indexOf("_on.png") < 0) {
                                $(a[i].childNodes[1]).children().find("img").attr("src", imgUrl.replace(".png", "_on.png"));
                            }
                        } else {
                            if(a[i].childNodes[1].className.indexOf("DTFW_") > -1) {
                                menuType = "DTFW_";
                            } else if(a[i].childNodes[1].className.indexOf("ZYZX_") > -1){
                                menuType = "ZYZX_";
                            }
                            a[i].childNodes[1].className = menuType + "smenu";
                        }
                    }
                }
            }
        }
    }
 
    function openlinks(url, id) {
        var linkurl = url.replace("~/", "") + '?menuId=' + id;
        var ms = '~/' + linkurl;
        parent.window.location.href = ms;
    }
 
    //获取参数值
    function GetArgument(argu, filed) {
        var result = "";
        var arr = argu.split('&');
        for (var i = 0; i < arr.length; i++) {
            if (arr[i].indexOf(filed) > -1) {
                result = arr[i].split('=')[1];
            }
        }
        return result;
    }
 
    //跳转链接
    function OpenLink(url) {
        window.location.href = url;
    }
 
    var slidint;
 
    function NewTimer() {
        try {
            stopit();
            var today;
            today = new Date();
            document.getElementById("NowTimer").innerHTML = today.getFullYear() + "-" + (today.getMonth() + 1) + "-" + today.getDate() +  "   " + week() + "   " + today.toLocaleTimeString();
            slidint = setTimeout(NewTimer, 1000);
        }
        catch (ex) {
            alert(ex);
        }
    }
 
    function stopit() {
        clearTimeout(slidint);
    }
 
    function week() {
        var d, day, x, s = " ";
        x = new Array("星期日", "星期一", "星期二");
        x = x.concat("星期三", "星期四", "星期五");
        x = x.concat("星期六");
        d = new Date();
        day = d.getDay();
        return (s += x[day]);
    }
 
    //弹出修改密码窗口
    function openPasswordChangeLayer(){
        layer.open({
            type: 2,
            skin: 'layui-layer-molv',
            title: "修改密码",
            shadeClose: true,
            shade: false,
            area: ["550px", "270px"],
            content: backstageWebRoot + "lanwebapp/admin/modifypassword.html"
        });
    }
 
    //弹出修改个人信息窗口
    function openUserInfoChangeLayer(){
        // layer.open({
        //     type: 2,
        //     skin: 'layui-layer-molv',
        //     title: "修改个人信息",
        //     shadeClose: true,
        //     shade: false,
        //     area: ["900px", "450px"],
        //     content: backstageWebRoot + "lanwebapp/admin/userinfo_edit.html"
        // });
        window.open(backstageWebRoot + "lanwebapp/admin/userinfo_edit.html", "_blank");
    }
 
    function openNewWinLink(type){
        window.open(gisPortal+type, "_blank");
    }
    /*]]>*/
</script>
<script th:src="@{${pubzyWebRoot} + 'BootStrap4/assets/js/detect.js'}"></script>
<!-- jQuery.browser.mobile will be true if the browser is a mobile device -->
<script th:src="@{${pubzyWebRoot} + 'BootStrap4/assets/js/fastclick.js'}"></script>
<script th:src="@{${pubzyWebRoot} + 'BootStrap4/assets/js/jquery.slimscroll.js'}"></script>
 
<!-- App js -->
<script th:src="@{${pubzyWebRoot} + 'BootStrap4/assets/js/jquery.app.js'}"></script>
<!-- 自动登录Portal地图服务  lxb -->
<!-- <iframe src="https://gis.nmsmp.com/arcgis/ltGisPortal/viewer/sso_auth.html?redirectUrl=http%3A%2F%2Fgis.nmsmp.com%2Farcgis%2FltGisPortal%2Fviewer%2FloginSucced.html" style="visibility: hidden;position: absolute;  z-index: 1"></iframe>
 -->
 <iframe src="https://localhost:8080/viewer/sso_auth.html?redirectUrl=http%3A%2F%2Flocalhost:8080%2Fviewer%2FloginSucced.html" style="visibility: hidden;position: absolute;  z-index: 1"></iframe>
 </body>
</html>