Parcourir la source

修改头部导航

wangcz il y a 8 ans
Parent
commit
bba0a43338

+ 2 - 1
src/main/webapp/WEB-INF/views/normal/index.html

@@ -54,11 +54,12 @@
 					</div>
 					</div>
 				</ul>
 				</ul>
 				<div id="home-headerName">
 				<div id="home-headerName">
-					<a ui-sref="approvalflow.enterprise"><span>{{userInfo.enterprise.enName}}&nbsp;({{userInfo.enterprise.uu}})</span> <i class="fa fa-chevron-down"></i></a>
+					<a ui-sref="approvalflow.enterprise"><span ng-bind="userInfo.enterprise.enName"></span> <i class="fa fa-chevron-down"></i></a>
 				</div>
 				</div>
 				<div class="name-tk">
 				<div class="name-tk">
 					<div>
 					<div>
 						<ul class="user-message">
 						<ul class="user-message">
+							<li><a ui-sref="approvalflow.enterprise">&nbsp;(<span ng-bind="userInfo.enterprise.uu" class="red"></span>)<span class="red" ng-bind="userInfo.enterprise.enName"></span>{{}}&nbsp;</span></a></li>
 							<li ng-repeat="e in userInfo.enSelect">
 							<li ng-repeat="e in userInfo.enSelect">
 								<a ng-click="switchto(e.uu)">{{e.enName}}</a>
 								<a ng-click="switchto(e.uu)">{{e.enName}}</a>
 							</li>
 							</li>

+ 8 - 0
src/main/webapp/resources/css/index.css

@@ -2784,12 +2784,20 @@ input.ng-invalid.ng-dirty,textarea.ng-invalid.ng-dirty {
 .name-tk .user-message li:last-child {
 .name-tk .user-message li:last-child {
 	border-bottom: none;
 	border-bottom: none;
 }
 }
+.name-tk .user-message li:first-child a{
+	color:#d32526;
+}
+.name-tk .user-message li:first-child a span.red{
+	color:#d32526;
+}
 .name-tk .user-message li a{
 .name-tk .user-message li a{
 	padding-left: 10px;
 	padding-left: 10px;
 	display: inline-block;
 	display: inline-block;
 	width: 250px;
 	width: 250px;
 	height: 38px;
 	height: 38px;
 	overflow: hidden;
 	overflow: hidden;
+	text-overflow: ellipsis;
+	white-space: nowrap;
 }
 }
 .name-tk .user-message li.active a{
 .name-tk .user-message li.active a{
 	width: 250px;
 	width: 250px;