作者 朱兆平

样式修改

1 -$color-primary: #20a0ff;//#18c79c  
  1 +$color-primary: #1a4496;//#18c79c
1 <template> 1 <template>
2 - <el-row class="container"> 2 + <el-row class="container darkmenu">
3 <el-col :span="24" class="header"> 3 <el-col :span="24" class="header">
4 <el-col :span="10" class="logo" :class="collapsed?'logo-collapse-width':'logo-width'"> 4 <el-col :span="10" class="logo" :class="collapsed?'logo-collapse-width':'logo-width'">
5 {{collapsed?'':sysName}} 5 {{collapsed?'':sysName}}
@@ -156,7 +156,6 @@ @@ -156,7 +156,6 @@
156 156
157 <style scoped lang="scss"> 157 <style scoped lang="scss">
158 @import '~scss_vars'; 158 @import '~scss_vars';
159 -  
160 .container { 159 .container {
161 position: absolute; 160 position: absolute;
162 top: 0px; 161 top: 0px;
@@ -165,7 +164,7 @@ @@ -165,7 +164,7 @@
165 .header { 164 .header {
166 height: 60px; 165 height: 60px;
167 line-height: 60px; 166 line-height: 60px;
168 - background: $color-primary; 167 + background: $color-primary url("/static/images/air-banner.png");
169 color:#fff; 168 color:#fff;
170 .userinfo { 169 .userinfo {
171 text-align: right; 170 text-align: right;
@@ -228,9 +227,6 @@ @@ -228,9 +227,6 @@
228 // position: absolute; 227 // position: absolute;
229 // top: 0px; 228 // top: 0px;
230 // bottom: 0px; 229 // bottom: 0px;
231 - .el-menu{  
232 - height: 100%;  
233 - }  
234 .collapsed{ 230 .collapsed{
235 width:60px; 231 width:60px;
236 .item{ 232 .item{
@@ -267,16 +263,21 @@ @@ -267,16 +263,21 @@
267 // bottom: 0px; 263 // bottom: 0px;
268 // left: 230px; 264 // left: 230px;
269 overflow-y: scroll; 265 overflow-y: scroll;
270 - padding: 20px; 266 + padding: 10px;
271 .breadcrumb-container { 267 .breadcrumb-container {
272 //margin-bottom: 15px; 268 //margin-bottom: 15px;
273 .title { 269 .title {
274 width: 200px; 270 width: 200px;
275 float: left; 271 float: left;
276 color: #475669; 272 color: #475669;
  273 + margin-left: 10px;
277 } 274 }
278 .breadcrumb-inner { 275 .breadcrumb-inner {
279 float: right; 276 float: right;
  277 + margin-right:10px;
  278 + }
  279 + .el-breadcrumb{
  280 + line-height:36px;
280 } 281 }
281 } 282 }
282 .content-wrapper { 283 .content-wrapper {
@@ -286,4 +287,42 @@ @@ -286,4 +287,42 @@
286 } 287 }
287 } 288 }
288 } 289 }
  290 +</style>
  291 +<style lang="scss">
  292 + .darkmenu{
  293 + .main {
  294 + aside {
  295 + .el-menu{
  296 + height: 100%;
  297 + background: #606060;
  298 + .el-menu-item {
  299 + i{
  300 + color: white;
  301 + }
  302 + color: white;
  303 + }
  304 + .el-menu-item.is-active{
  305 + color:#e6a23c;
  306 + }
  307 + .el-menu-item:hover,.el-menu-item:focus{
  308 + background-color: #1a4496;
  309 + }
  310 + .el-submenu {
  311 + ul.el-menu.el-menu--inline{
  312 + background: #303030;
  313 + }
  314 + .el-submenu__title {
  315 + color: white;
  316 + i{
  317 + color: white;
  318 + }
  319 + }
  320 + .el-submenu__title:hover {
  321 + background-color: #1a4496;
  322 + }
  323 + }
  324 + }
  325 + }
  326 + }
  327 + }
289 </style> 328 </style>
@@ -955,9 +955,6 @@ export default { @@ -955,9 +955,6 @@ export default {
955 margin-bottom: 0; 955 margin-bottom: 0;
956 } 956 }
957 } 957 }
958 - .el-col {  
959 - border-radius: 4px;  
960 - }  
961 .bg-purple-dark { 958 .bg-purple-dark {
962 background: #99a9bf; 959 background: #99a9bf;
963 } 960 }
@@ -968,7 +965,6 @@ export default { @@ -968,7 +965,6 @@ export default {
968 background: #e5e9f2; 965 background: #e5e9f2;
969 } 966 }
970 .grid-content { 967 .grid-content {
971 - border-radius: 4px;  
972 min-height: 36px; 968 min-height: 36px;
973 } 969 }
974 .row-bg { 970 .row-bg {
@@ -46,7 +46,7 @@ @@ -46,7 +46,7 @@
46 </el-table-column> 46 </el-table-column>
47 <el-table-column label="操作" width="250"> 47 <el-table-column label="操作" width="250">
48 <template slot-scope="scope"> 48 <template slot-scope="scope">
49 - <el-button size="small" @click="roleEdit(scope.$index, scope.row)">权限配置</el-button> 49 + <el-button size="small" @click="roleEdit(scope.$index, scope.row)">角色配置</el-button>
50 <el-button size="small" @click="handleEdit(scope.$index, scope.row)">编辑</el-button> 50 <el-button size="small" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
51 <el-button type="danger" size="small" @click="handleDel(scope.$index, scope.row)">删除</el-button> 51 <el-button type="danger" size="small" @click="handleDel(scope.$index, scope.row)">删除</el-button>
52 </template> 52 </template>
@@ -168,7 +168,7 @@ @@ -168,7 +168,7 @@
168 <el-form-item label="账号"> 168 <el-form-item label="账号">
169 <span>{{roleEditForm.username}}</span> 169 <span>{{roleEditForm.username}}</span>
170 </el-form-item> 170 </el-form-item>
171 - <el-tree :data="roles" :props="treeDefaultProps" show-checkbox highlight-current node-key="roleId" ref="tree" @check-change="treeHandleCheckChange"> 171 + <el-tree :data="roles" :props="treeDefaultProps" show-checkbox highlight-current check-strictly node-key="roleId" ref="tree" @check-change="treeHandleCheckChange">
172 </el-tree> 172 </el-tree>
173 </el-form> 173 </el-form>
174 174