Browse Source

角色颜色替换

yangc 7 năm trước cách đây
mục cha
commit
062afd89da

BIN
src/main/webapp/resources/img/vendor/authority/role-bg-1.png


BIN
src/main/webapp/resources/img/vendor/authority/role-bg-2.png


BIN
src/main/webapp/resources/img/vendor/authority/role-bg-3.png


BIN
src/main/webapp/resources/img/vendor/authority/role-bg-4.png


+ 7 - 7
src/main/webapp/resources/view/sso/rolePermission.html

@@ -541,19 +541,19 @@
         float: left;
     }
     .user_right .bgimg-1 {
-        background: url(static/img/vendor/authority/role-bg-1.jpg)no-repeat;
+        background: url(static/img/vendor/authority/role-bg-1.png)no-repeat;
     }
     .user_right .bgimg-2 {
-        background: url(static/img/vendor/authority/role-bg-2.jpg)no-repeat;
+        background: url(static/img/vendor/authority/role-bg-2.png)no-repeat;
     }
     .user_right .bgimg-3 {
-        background: url(static/img/vendor/authority/role-bg-3.jpg)no-repeat;
+        background: url(static/img/vendor/authority/role-bg-3.png)no-repeat;
     }
     .user_right .bgimg-4 {
-        background: url(static/img/vendor/authority/role-bg-4.jpg)no-repeat;
+        background: url(static/img/vendor/authority/role-bg-4.png)no-repeat;
     }
     .user_right .bgimg-5 {
-        background: url(static/img/vendor/authority/role-bg-5.jpg)no-repeat;
+        background: url(static/img/vendor/authority/role-bg-5.png)no-repeat;
     }
     /*新增*/
     #account_manager a {
@@ -911,7 +911,7 @@
         <div class="count01 clearfix role-manage" >
             <p>默认角色</p>
             <div class="default-role-area">
-                <div class="{{'default-role-box bgimg-'+ role.color || 1}}" ng-repeat="role in roles.defaults track by role.id" ng-click="editRole(role)">
+                <div class="{{'default-role-box bgimg-'+ ((role.color == 5 ? 4 : role.color) || 1)}}" ng-repeat="role in roles.defaults track by role.id" ng-click="editRole(role)">
                     <p>{{role.desc}}</p>
                     <span>{{role.duty}}</span>
                 </div>
@@ -919,7 +919,7 @@
             <p class="self-header">自定义角色</p>
             <div class="define-role-area">
                 <div class="default-role-area">
-                    <div class="{{'default-role-box bgimg-'+ role.color || 1}}" ng-repeat="role in roles.custom track by role.id" ng-click="editRole(role)">
+                    <div class="{{'default-role-box bgimg-'+ ((role.color == 5 ? 4 : role.color) || 1)}}" ng-repeat="role in roles.custom track by role.id" ng-click="editRole(role)">
                         <p>{{role.desc}}</p>
                         <span>{{role.duty}}</span>
                     </div>