<!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>
|