This commit is contained in:
zhujunjieit 2019-01-27 21:41:45 +08:00
parent 3bc8c3518c
commit 68f9ae93ac
1 changed files with 18 additions and 9 deletions

View File

@ -19,6 +19,13 @@
<style type="text/css"> <style type="text/css">
.nav > li:hover .dropdown-menu {display: block;} .nav > li:hover .dropdown-menu {display: block;}
#content-main.max { height: calc(100% - 110px); overflow: hidden; width: 100%; height: 100%; left: 0px; position: absolute; top: 0px; z-index: 9998; margin: 0; } #content-main.max { height: calc(100% - 110px); overflow: hidden; width: 100%; height: 100%; left: 0px; position: absolute; top: 0px; z-index: 9998; margin: 0; }
.profile-element{
display: flex;
}
.userInfo{
margin-top: 5px;
margin-left: 10px;
}
</style> </style>
</head> </head>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow: hidden" th:classappend="${@config.getKey('sys.index.skinName')}"> <body class="fixed-sidebar full-height-layout gray-bg" style="overflow: hidden" th:classappend="${@config.getKey('sys.index.skinName')}">
@ -33,15 +40,17 @@
<ul class="nav" id="side-menu"> <ul class="nav" id="side-menu">
<li class="nav-header"> <li class="nav-header">
<div class="dropdown profile-element"> <span> <div class="dropdown profile-element"> <span>
<img th:src="@{/juncong.jpg}" alt="image" class="img-circle" height="60" width="60"/></span> <img th:src="@{/juncong.jpg}" alt="image" class="img-circle" height="60" width="60"/></span>
<a data-toggle="dropdown" class="dropdown-toggle" href="#"> <div class="userInfo">
<span class="clear"><span class="block m-t-xs"><strong class="font-bold" th:text="${user.userName}">用户</strong></span> <a data-toggle="dropdown" class="dropdown-toggle" href="#">
<span class="text-muted text-xs block"><span th:text="${user.dept?.deptName}">部门</span> <b class="caret"></b></span> </span> </a> <span class="clear"><span class="block m-t-xs"><strong class="font-bold" th:text="${user.userName}">用户</strong></span>
<ul class="dropdown-menu animated fadeInRight m-t-xs"> <span class="text-muted text-xs block"><span th:text="${user.dept?.deptName}">部门</span> <b class="caret"></b></span> </span> </a>
<li><a class="menuItem" th:href="@{/system/user/profile}">个人信息</a></li> <ul class="dropdown-menu animated fadeInRight m-t-xs">
<li class="divider"></li> <li><a class="menuItem" th:href="@{/system/user/profile}">个人信息</a></li>
<li><a th:href="@{logout}">退出</a></li> <li class="divider"></li>
</ul> <li><a th:href="@{logout}">退出</a></li>
</ul>
</div>
</div> </div>
</li> </li>
<li class="active"> <li class="active">