Browse Source

ui update

13219261128 3 years ago
parent
commit
9b173b418e

+ 1 - 1
src/assets/style/fixed/element.scss

@@ -5,7 +5,7 @@
5 5
   }
6 6
   &.is-hover-shadow {
7 7
     &:hover {
8
-      box-shadow: 0 0 8px 0 rgba(232,237,250,.6), 0 2px 4px 0 rgba(232,237,250,.5);
8
+      // box-shadow: 0 0 8px 0 rgba(232,237,250,.6), 0 2px 4px 0 rgba(232,237,250,.5);
9 9
     }
10 10
   }
11 11
 }

+ 6 - 4
src/assets/style/public-class.scss

@@ -90,18 +90,19 @@ $sizes: (0, 5, 10, 15, 20);
90 90
 // }
91 91
 // //头部导航一级菜单的样式
92 92
 .theme-d2 .d2-theme-header .el-menu .el-menu-item{
93
-  height: 50px;
93
+  height: 2.6vw;
94 94
   // border-right:linear-gradient(#193a6d, #487B98 20%,#193a6d 80%) !important;
95 95
   border-right:linear-gradient(red yellow) !important;
96 96
 }
97 97
 // 去除二级子菜单的上下padding
98 98
 .el-menu--horizontal .el-menu--popup {
99 99
   padding: 0;
100
+  box-shadow: none !important;
100 101
 }
101 102
 .el-menu--horizontal .el-menu {
102 103
   // 设置子菜单四周上左和右下的阴影
103
-  box-shadow: 2px 2px 2px 1px rgba(228, 231, 235, 0.2),-2px -2px 2px 1px rgba(228, 231, 235, 0.2);
104
-  border-radius: 2px;
104
+  // box-shadow: 2px 2px 2px 1px rgba(228, 231, 235, 0.2),-2px -2px 2px 1px rgba(228, 231, 235, 0.2);
105
+  // border-radius: 2px;
105 106
   background-color: transparent;
106 107
 }
107 108
 //头部导航二级菜单选中后整体的背景色
@@ -116,7 +117,7 @@ $sizes: (0, 5, 10, 15, 20);
116 117
   // color: #fff !important;
117 118
 }
118 119
 .el-menu--horizontal .el-menu--collapse .el-menu .el-submenu, .el-menu--popup {
119
-  min-width: 142px !important;
120
+  // min-width: 142px !important;
120 121
 }
121 122
 .el-menu--horizontal .el-menu .el-submenu.is-active>.el-submenu__title {
122 123
   color: #fff !important;
@@ -377,6 +378,7 @@ button.el-button.el-button--delebtn.el-button--mini{
377 378
 }
378 379
 .main .zt_right{
379 380
   // background-color: #fff;
381
+  height: 72vh;
380 382
 }
381 383
 .el-checkbox__input.is-checked+.el-checkbox__label{
382 384
   color: #008775 !important;

+ 18 - 8
src/assets/style/theme/theme-base.scss

@@ -1,12 +1,12 @@
1 1
 // 减小弹出菜单的项目高度
2 2
 .el-menu--popup {
3 3
   .el-menu-item {
4
-    height: 36px;
5
-    line-height: 36px;
4
+    height: 1.875vw;
5
+    line-height: 1.875vw;
6 6
   }
7 7
   .el-submenu__title {
8
-    height: 36px;
9
-    line-height: 36px;
8
+    height: 1.875vw;
9
+    line-height: 1.875vw;
10 10
   }
11 11
 }
12 12
 
@@ -27,10 +27,10 @@
27 27
   .d2-layout-header-aside-content {
28 28
     @extend %full;
29 29
     .d2-theme-header {
30
-      height: 90px;
30
+      height: 4.69vw;
31 31
       .d2-theme-header-menu {
32 32
         overflow: hidden;
33
-        margin-left:20px;
33
+        margin-left:7vw;
34 34
         &.is-scrollable {
35 35
           position: relative;
36 36
           padding: 0 20px;
@@ -42,7 +42,7 @@
42 42
         }
43 43
         .d2-theme-header-menu__content {
44 44
           overflow: hidden;
45
-          height: 50px;
45
+          height: 2.6vw;
46 46
           .d2-theme-header-menu__scroll {
47 47
             white-space: nowrap;
48 48
             position: relative;
@@ -53,6 +53,10 @@
53 53
             transition: transform .3s,-webkit-transform .3s;
54 54
             float: left;
55 55
           }
56
+          .fa{
57
+            font-size: 0.83vw !important;
58
+            margin-right: 0.3vw !important;
59
+          }
56 60
         }
57 61
         .d2-theme-header-menu__prev, .d2-theme-header-menu__next {
58 62
           height: 60px;
@@ -172,7 +176,7 @@
172 176
       // 顶栏右侧的按钮
173 177
       .d2-header-right {
174 178
         float: right;
175
-        height: 90px;
179
+        height: 4.69vw;
176 180
         display: flex;
177 181
         align-items: center;
178 182
         .btn-text {
@@ -183,8 +187,14 @@
183 187
             padding: 9px 6px;
184 188
           }
185 189
         }
190
+        .fa-user{
191
+          font-size: 0.83vw !important;
192
+        }
186 193
         .el-dropdown {
187 194
           @extend %unable-select;
195
+          span{
196
+          font-size: 0.83vw !important;
197
+          }
188 198
         }
189 199
       }
190 200
     }

+ 30 - 10
src/layout/header-aside/layout.vue

@@ -175,13 +175,17 @@ export default {
175 175
 //头部导航背景色
176 176
 .d2-theme-header {
177 177
   background-image: url(../../assets/images/nav-bg.jpg);
178
+  background-repeat: no-repeat;
179
+  background-size: 100% 100%;
178 180
 }
179 181
 .theme-d2 .d2-theme-header .el-menu .el-submenu .el-submenu__title{
180
-  height: 50px;
181
-  line-height: 50px;
182
+  height: 2.6vw;
183
+  line-height: 2.6vw;
184
+  font-size: 0.94vw;
185
+
182 186
 }
183 187
 .d2-layout-header-aside-group .d2-layout-header-aside-content .d2-theme-header .el-menu .el-menu-item{
184
-  line-height: 50px;
188
+  line-height: 2.6vw;
185 189
 }
186 190
 //头部每个菜单宽度
187 191
 .theme-d2 .d2-theme-header .el-menu .el-menu-item{
@@ -219,14 +223,24 @@ export default {
219 223
   align-items: center;
220 224
   padding-left: 10px;
221 225
   // margin-right: 170px;
226
+  img{
227
+    width: 20vw;
228
+  }
222 229
 }
223 230
 
224 231
 // 设置导航右边框
225 232
 .theme-d2 .d2-theme-header .el-menu .el-submenu {
226 233
   // border-right: 1px solid rgba(255, 255, 255, 0.5);
227 234
   //  border-image: linear-gradient(red,yellow) 30 30;
228
-  width: 170px;
235
+  width: 8.85vw;
229 236
   text-align: center;
237
+  i{
238
+    font-size: 0.83vw !important;
239
+  }
240
+}
241
+.el-menu--horizontal>.el-submenu .el-submenu__icon-arrow{
242
+  margin-left: 0.7vw !important;
243
+  margin-top: 0.06vw !important;
230 244
 }
231 245
 .theme-d2 .d2-theme-header .el-menu .el-submenu:last-child {
232 246
   border: none ;
@@ -238,8 +252,9 @@ export default {
238 252
 }
239 253
 .theme-d2 .d2-theme-header .el-menu .el-menu-item {
240 254
   // border-right: 1px solid rgba(255, 255, 255, 0.5);
241
-  width: 170px;
255
+  width: 8.85vw;
242 256
   text-align: center;
257
+  font-size: 0.94vw;
243 258
   //  border-image: linear-gradient(red,yellow) 30 30;
244 259
 }
245 260
 .theme-d2 .d2-theme-header .el-menu {
@@ -251,9 +266,9 @@ export default {
251 266
   display: inline-block;
252 267
   position: absolute;
253 268
   right: 0;
254
-  top: 8px;
269
+  top: 0.4vw;
255 270
   width: 1px;
256
-  height: 34px;
271
+  height: 1.77vw;
257 272
   background: rgba(255, 255, 255, 0.61);
258 273
   border-radius: 50%;
259 274
 }
@@ -262,9 +277,9 @@ export default {
262 277
   display: inline-block;
263 278
   position: absolute;
264 279
   right: 0;
265
-  top: 8px;
280
+  top: 0.4vw;
266 281
   width: 1px;
267
-  height: 34px;
282
+  height: 1.77vw;
268 283
   background: rgba(255, 255, 255, 0.61);
269 284
   border-radius: 50%;
270 285
 }
@@ -282,13 +297,18 @@ export default {
282 297
 // 导航菜单二级菜单字体颜色
283 298
 .el-menu--horizontal .el-menu .el-menu-item, .el-menu--horizontal .el-menu .el-submenu__title {
284 299
   color: #333;
300
+  // font-size: 0.94vw;
285 301
 }
286 302
 .el-menu--horizontal .el-menu .el-menu-item.is-active{
287 303
   color: #008775 !important;
288 304
 }
289 305
 .el-menu--horizontal .el-menu .el-menu-item{
290 306
   font-weight: bold;
291
-  width: 170px;
307
+  width: 8.85vw;
308
+  height: 2.6vw;
309
+  line-height: 2.6vw;
310
+  font-size: 0.83vw;
311
+
292 312
 }
293 313
 .el-menu--horizontal .el-menu .el-menu-item:hover{
294 314
   color: #008775 !important;

+ 2 - 0
src/views/demo/equipmentManage/equipment/index.vue

@@ -111,6 +111,7 @@
111 111
                   prop="id"
112 112
                   label="设备ID"
113 113
                   align="center"
114
+                  show-overflow-tooltip
114 115
                 >
115 116
                 </el-table-column>
116 117
                 <el-table-column
@@ -446,6 +447,7 @@ export default {
446 447
     width: 100%;
447 448
 border: 1px solid #DEDEDE;
448 449
 border-radius: 6px;
450
+background: #fff;
449 451
     // margin-left: 20px;
450 452
     // width: calc(100% - 250px);
451 453
     .right_title{

+ 29 - 19
src/views/demo/system/operationLog/index.vue

@@ -1,11 +1,12 @@
1 1
 <template>
2 2
   <div>
3 3
     <d2-container>
4
+          <div class="nav">当前所在位置:首页>操作日志</div>
5
+
4 6
       <!-- <template slot="header">首页/数据查询</template> -->
5 7
       <div class="main">
6 8
         <div class="zt_right">
7 9
           <!-- <template slot="header">首页/数据查询</template> -->
8
-          <div class="nav">当前所在位置:首页>操作日志</div>
9 10
           <div class="right_main">
10 11
             <!-- <div class="right_title">
11 12
               <i
@@ -378,33 +379,42 @@ export default {
378 379
  
379 380
   .zt_right {
380 381
     width: 100%;
382
+border: 1px solid #DEDEDE;
383
+border-radius: 6px;
384
+background: #fff;
381 385
     // margin-left: 20px;
382 386
     // width: calc(100% - 250px);
383
-    .nav {
387
+    .right_title{
388
+      font-weight: bold;
389
+      font-size: 16px;
390
+      border-bottom:1px solid #ebeef5;
391
+      background-color: rgba(233, 244, 243, 0.5);
392
+      border-top-left-radius: 6px;
393
+      border-top-right-radius: 6px;
394
+      color: #008775;
395
+      border-bottom: 1px solid rgba(1, 164, 143, 0.3);
396
+      padding-left: 0;
397
+      span{
398
+        padding: 10px;
399
+        padding-bottom: 9px;
400
+        border-bottom: 2px solid #01a48f;
401
+
402
+      }
403
+    }
404
+
405
+  }
406
+}
407
+     .nav {
384 408
       padding: 10px 0 10px 10px;
409
+      margin-bottom: 20px;
385 410
       // color: #fff;
386 411
 
387 412
       font-size: 14px;
388 413
 
389
-      background: #fff;
414
+      background: #FFFFFF;
415
+      border: 1px solid #DEDEDE;
390 416
     }
391
-    // .right_main {
392
-    //   border: 1px solid #67a7df;
393
-    //   background: #112f5d;
394 417
 
395
-    //   margin-top: 10px;
396
-    //   .right_title {
397
-    //     color: #fff;
398
-    //     border-bottom: 1px solid #67a7df;
399
-    //     padding: 10px;
400
-    //     font-size: 14px;
401
-    //   }
402
-    //   .right_table {
403
-    //     padding: 20px;
404
-    //   }
405
-    // }
406
-  }
407
-}
408 418
 .float-left {
409 419
   float: left;
410 420
 }

+ 30 - 20
src/views/demo/system/organization/index.vue

@@ -2,10 +2,11 @@
2 2
   <div>
3 3
     <d2-container>
4 4
       <!-- <template slot="header">首页/数据查询</template> -->
5
+          <div class="nav">当前所在位置:首页>组织机构</div>
6
+
5 7
       <div class="main">
6 8
         <div class="zt_right">
7 9
           <!-- <template slot="header">首页/数据查询</template> -->
8
-          <div class="nav">当前所在位置:首页>组织机构</div>
9 10
           <div class="ztnr">
10 11
           <div class="right_main">
11 12
             <!-- <div class="right_title">
@@ -674,34 +675,43 @@ export default {
674 675
     color: #fff;
675 676
   }
676 677
   .zt_right {
677
-    width:100%;
678
+    width: 100%;
679
+border: 1px solid #DEDEDE;
680
+border-radius: 6px;
681
+background: #fff;
678 682
     // margin-left: 20px;
679 683
     // width: calc(100% - 250px);
680
-    .nav {
684
+    .right_title{
685
+      font-weight: bold;
686
+      font-size: 16px;
687
+      border-bottom:1px solid #ebeef5;
688
+      background-color: rgba(233, 244, 243, 0.5);
689
+      border-top-left-radius: 6px;
690
+      border-top-right-radius: 6px;
691
+      color: #008775;
692
+      border-bottom: 1px solid rgba(1, 164, 143, 0.3);
693
+      padding-left: 0;
694
+      span{
695
+        padding: 10px;
696
+        padding-bottom: 9px;
697
+        border-bottom: 2px solid #01a48f;
698
+
699
+      }
700
+    }
701
+
702
+  }
703
+}
704
+     .nav {
681 705
       padding: 10px 0 10px 10px;
706
+      margin-bottom: 20px;
682 707
       // color: #fff;
683 708
 
684 709
       font-size: 14px;
685 710
 
686
-      background: #fff;
711
+      background: #FFFFFF;
712
+      border: 1px solid #DEDEDE;
687 713
     }
688
-    .right_main {
689
-      // border: 1px solid #67a7df;
690
-      // background: #112f5d;
691 714
 
692
-      margin-top: 10px;
693
-      .right_title {
694
-        color: #fff;
695
-        // border-bottom: 1px solid #67a7df;
696
-        padding: 10px;
697
-        font-size: 14px;
698
-      }
699
-      .right_table {
700
-        padding: 20px;
701
-      }
702
-    }
703
-  }
704
-}
705 715
 .float-left {
706 716
   float: left;
707 717
 }

+ 29 - 19
src/views/demo/system/roleManagement/index.vue

@@ -1,11 +1,12 @@
1 1
 <template>
2 2
   <div>
3 3
     <d2-container>
4
+      <div class="nav">当前所在位置:首页>角色管理</div>
5
+
4 6
       <!-- <template slot="header">首页/数据查询</template> -->
5 7
       <div class="main">
6 8
         <div class="zt_right">
7 9
           <!-- <template slot="header">首页/数据查询</template> -->
8
-          <div class="nav">当前所在位置:首页>角色管理</div>
9 10
           <div class="right_main">
10 11
             <!-- <div class="right_title">
11 12
               <i class="fa fa-bar-chart" aria-hidden="true" style="padding-right: 5px"></i>
@@ -465,33 +466,42 @@ export default {
465 466
  
466 467
   .zt_right {
467 468
     width: 100%;
469
+border: 1px solid #DEDEDE;
470
+border-radius: 6px;
471
+background: #fff;
468 472
     // margin-left: 20px;
469 473
     // width: calc(100% - 250px);
470
-    .nav {
474
+    .right_title{
475
+      font-weight: bold;
476
+      font-size: 16px;
477
+      border-bottom:1px solid #ebeef5;
478
+      background-color: rgba(233, 244, 243, 0.5);
479
+      border-top-left-radius: 6px;
480
+      border-top-right-radius: 6px;
481
+      color: #008775;
482
+      border-bottom: 1px solid rgba(1, 164, 143, 0.3);
483
+      padding-left: 0;
484
+      span{
485
+        padding: 10px;
486
+        padding-bottom: 9px;
487
+        border-bottom: 2px solid #01a48f;
488
+
489
+      }
490
+    }
491
+
492
+  }
493
+}
494
+     .nav {
471 495
       padding: 10px 0 10px 10px;
496
+      margin-bottom: 20px;
472 497
       // color: #fff;
473 498
 
474 499
       font-size: 14px;
475 500
 
476
-      background: #fff;
501
+      background: #FFFFFF;
502
+      border: 1px solid #DEDEDE;
477 503
     }
478
-    .right_main {
479
-      // border: 1px solid #67a7df;
480
-      // background: #112f5d;
481 504
 
482
-      margin-top: 10px;
483
-      .right_title {
484
-        color: #fff;
485
-        border-bottom: 1px solid #67a7df;
486
-        padding: 10px;
487
-        font-size: 14px;
488
-      }
489
-      .right_table {
490
-        padding: 20px;
491
-      }
492
-    }
493
-  }
494
-}
495 505
 .float-left {
496 506
   float: left;
497 507
 }

+ 32 - 21
src/views/demo/system/userManagement/index.vue

@@ -1,11 +1,13 @@
1 1
 <template>
2 2
   <div>
3 3
     <d2-container>
4
+          <div class="nav">当前所在位置:首页>用户管理</div>
5
+
4 6
       <!-- <template slot="header">首页/数据查询</template> -->
5 7
       <div class="main">
8
+
6 9
         <div class="zt_right">
7 10
           <!-- <template slot="header">首页/数据查询</template> -->
8
-          <div class="nav">当前所在位置:首页>用户管理</div>
9 11
           <div class="right_main">
10 12
             <!-- <div class="right_title">
11 13
               <i class="fa fa-bar-chart" aria-hidden="true" style="padding-right: 5px"></i>
@@ -628,34 +630,43 @@ export default {
628 630
   display: flex;
629 631
  
630 632
   .zt_right {
631
-    width:100%;
633
+    width: 100%;
634
+border: 1px solid #DEDEDE;
635
+border-radius: 6px;
636
+background: #fff;
632 637
     // margin-left: 20px;
633 638
     // width: calc(100% - 250px);
634
-    .nav {
639
+    .right_title{
640
+      font-weight: bold;
641
+      font-size: 16px;
642
+      border-bottom:1px solid #ebeef5;
643
+      background-color: rgba(233, 244, 243, 0.5);
644
+      border-top-left-radius: 6px;
645
+      border-top-right-radius: 6px;
646
+      color: #008775;
647
+      border-bottom: 1px solid rgba(1, 164, 143, 0.3);
648
+      padding-left: 0;
649
+      span{
650
+        padding: 10px;
651
+        padding-bottom: 9px;
652
+        border-bottom: 2px solid #01a48f;
653
+
654
+      }
655
+    }
656
+
657
+  }
658
+}
659
+     .nav {
635 660
       padding: 10px 0 10px 10px;
661
+      margin-bottom: 20px;
636 662
       // color: #fff;
637 663
 
638 664
       font-size: 14px;
639 665
 
640
-      background: #fff;
666
+      background: #FFFFFF;
667
+      border: 1px solid #DEDEDE;
641 668
     }
642
-    // .right_main {
643
-    //   border: 1px solid #67a7df;
644
-    //   background: #112f5d;
645
-
646
-    //   margin-top: 10px;
647
-    //   .right_title {
648
-    //     color: #fff;
649
-    //     border-bottom: 1px solid #67a7df;
650
-    //     padding: 10px;
651
-    //     font-size: 14px;
652
-    //   }
653
-    //   .right_table {
654
-    //     padding: 20px;
655
-    //   }
656
-    // }
657
-  }
658
-}
669
+
659 670
 .float-left {
660 671
   float: left;
661 672
 }

+ 17 - 16
src/views/system/index/page.vue

@@ -56,7 +56,7 @@
56 56
           </div>
57 57
           <div class="tableBox">
58 58
             <el-table
59
-            height="500"
59
+            height="26.04vw"
60 60
               :data="tableData"
61 61
               :header-cell-style="{ background: '#E9F4F3', color: '#445D5A' }"
62 62
               style="width: 100%">
@@ -123,6 +123,7 @@
123 123
 </template>
124 124
 <script>
125 125
 import api from "@/api";
126
+// import rem from "./rem";
126 127
 export default {
127 128
   name: "home",
128 129
   data() {
@@ -338,7 +339,7 @@ export default {
338 339
   margin-top: 36px;
339 340
   margin-bottom: 28px;
340 341
   .box {
341
-    width: 16%;
342
+    width: 15.1vw;
342 343
     // min-width: 296px;
343 344
     // height: 184px;
344 345
     background-color: #fff;
@@ -347,25 +348,25 @@ export default {
347 348
     // aspect-ratio: 4/3;
348 349
     .num {
349 350
       text-align: center;
350
-      font-size: 30px;
351
+      font-size: 1.56vw;
351 352
       font-weight: 500;
352 353
       color: #445d5a;
353
-      padding-top: 24px;
354
+      // padding-top: 0.24rem;
354 355
     }
355 356
     .name {
356 357
       text-align: center;
357
-      padding: 8px 0 20px 0;
358
-      font-size: 18px;
358
+      padding: 0.42vw 0 1.04vw 0;
359
+      font-size: 0.94vw;
359 360
       font-weight: 500;
360 361
       color: #008775;
361 362
       border-bottom: 2px solid rgba(54, 204, 126, 0.09);
362 363
     }
363 364
     .bottom {
364
-      padding: 4px 15px;
365
+      padding: 0.21vw 0.78vw;
365 366
       display: flex;
366 367
       align-items: center;
367 368
       justify-content: space-between;
368
-      font-size: 16px;
369
+      font-size: 0.83vw;
369 370
       color: #888888;
370 371
     }
371 372
   }
@@ -374,19 +375,19 @@ export default {
374 375
 .bottomTitle {
375 376
   display: flex;
376 377
   align-items: center;
377
-  font-size: 24px;
378
+  font-size: 1.25vw;
378 379
   font-weight: 500;
379 380
   color: #445d5a;
380
-  padding-bottom: 18px;
381
+  padding-bottom: 0.94vw;
381 382
   img{
382
-    margin-right: 10px;
383
+    margin-right: 0.52vw;
383 384
   }
384 385
   span{
385 386
     color:#008775
386 387
   }
387 388
 }
388 389
 .echartsBox {
389
-  height: 610px;
390
+  height: 29.24vw;
390 391
   background: #ffffff;
391 392
   border: 1px solid #dedede;
392 393
   border-radius: 8px;
@@ -431,7 +432,7 @@ export default {
431 432
   align-items: center;
432 433
   justify-content: space-between;
433 434
   .more{
434
-    font-size: 16px;
435
+    font-size: 0.83vw;
435 436
     color: #888888;
436 437
     cursor: pointer;
437 438
   padding-bottom: 18px;
@@ -439,7 +440,7 @@ export default {
439 440
   }
440 441
 }
441 442
 .tableBox{
442
-  height: 570px;
443
+  height: 26.52vw;
443 444
   background: #FFFFFF;
444 445
   border: 1px solid #DEDEDE;
445 446
   border-radius: 8px;
@@ -447,9 +448,9 @@ export default {
447 448
 }
448 449
 .topIcon{
449 450
   display: block;
450
-  width: 70px;
451
+  width: 5.21vw;
451 452
   margin: auto;
452
-  margin-top: -32px;
453
+  margin-top: -2.08vw;
453 454
 }
454 455
 
455 456
 </style>

+ 25 - 0
src/views/system/index/rem.js

@@ -0,0 +1,25 @@
1
+
2
+if(window.location.hash=='#/index'){
3
+    fnResize();
4
+    window.onresize = function () {
5
+      fnResize();
6
+    }
7
+    function fnResize() {
8
+
9
+        document.documentElement.style.fontSize = 100 / 1920 * window.innerWidth + 'px';
10
+      }
11
+      // 禁止双击放大
12
+      document.documentElement.addEventListener('touchstart', function (event) {
13
+        if (event.touches.length > 1) {
14
+          event.preventDefault();
15
+        }
16
+      }, false);
17
+      var lastTouchEnd = 0;
18
+      document.documentElement.addEventListener('touchend', function (event) {
19
+        var now = Date.now();
20
+        if (now - lastTouchEnd <= 300) {
21
+          event.preventDefault();
22
+        }
23
+        lastTouchEnd = now;
24
+      }, false)
25
+}

+ 10 - 7
src/views/system/login/page.vue

@@ -27,7 +27,7 @@
27 27
                 :rules="rules"
28 28
                 :model="formLogin"
29 29
                 size="default">
30
-                <div style="font-size:30px;text-align:center;color:#fff;margin-bottom:30px">用户登录</div>
30
+                <div style="font-size:1.56vw;text-align:center;color:#fff;margin-bottom:1.56vw">用户登录</div>
31 31
                 <el-form-item prop="username">
32 32
                   <el-input
33 33
                     type="text"
@@ -278,8 +278,8 @@ export default {
278 278
   }
279 279
   // 登录表单
280 280
   .page-login--form {
281
-    width: 28em;
282
-    height: 26em;
281
+    width: 26.06vw;
282
+    height: 20.21vw;
283 283
     background-image: url("./image/dengluk.png");
284 284
     background-repeat: no-repeat;
285 285
     background-size: 100% 100%;
@@ -292,7 +292,7 @@ export default {
292 292
     // 登录按钮
293 293
     .button-login {
294 294
       width: 100%;
295
-      height: 56px;
295
+      height: 2.97vw;
296 296
       background: linear-gradient(0deg, #01E9BD, #00D6B9);
297 297
       border-radius: 6px;
298 298
     }
@@ -303,7 +303,7 @@ border: 1px solid #6DF6E4;
303 303
 box-shadow: 0px 0px 9px 0px rgba(0,87,75,0.3100);
304 304
 border-radius: 6px;
305 305
 color: #fff;
306
-height: 57px;
306
+height: 2.97vw;
307 307
     }
308 308
     // 输入框左边的图表区域缩窄
309 309
     .el-input-group__prepend {
@@ -328,6 +328,9 @@ height: 57px;
328 328
     .page-login--quick {
329 329
       width: 100%;
330 330
     }
331
+    .fa{
332
+      font-size: 1.15vw !important;
333
+    }
331 334
   }
332 335
   // 快速选择用户面板
333 336
   .page-login--quick-user {
@@ -496,8 +499,8 @@ height: 57px;
496 499
   }
497 500
 .el-input__inner{
498 501
         border: none;
499
-        height: 57px;
500
-        line-height: 57px;
502
+        height:  2.97vw;
503
+        line-height:  2.97vw;
501 504
         padding-left: 10px;
502 505
         padding-right: 0;
503 506
         background: transparent;