zhanghao 3 meses atrás
pai
commit
6b1bf09399
2 arquivos alterados com 13 adições e 4 exclusões
  1. 1 1
      src/layout/components/Sidebar/Logo.vue
  2. 12 3
      src/views/screen/main.vue

+ 1 - 1
src/layout/components/Sidebar/Logo.vue

@@ -66,7 +66,7 @@ export default {
     width: 100%;
 
     & .sidebar-logo {
-      width: 100px;
+      width: 150px;
       height: auto;
       vertical-align: middle;
       margin-right: 12px;

+ 12 - 3
src/views/screen/main.vue

@@ -23,6 +23,7 @@
               后勤资源监控
             </div>
           </div>
+          <div class="mid" @dblclick="fullScreen"></div>
           <div class="right">
             <div
               :class="['model', 3 == curIndex ? 'cur' : '']"
@@ -131,6 +132,9 @@ export default {
     document.documentElement.requestFullscreen();
   },
   methods: {
+    fullScreen(){
+      document.documentElement.requestFullscreen();
+    },
     //切换菜单
     chooseTab(index) {
       this.curIndex = index;
@@ -166,12 +170,12 @@ export default {
   height: 100vh;
   overflow: hidden;
   position: relative;
+  background-image: url("../../assets/images/main/main_bg.jpg");
+  background-size: cover;
 
   .main-wrapper {
     width: 1920px;
     height: 1080px;
-    background-image: url("../../assets/images/main/main_bg.jpg");
-    background-size: cover;
 
     margin: 0 auto;
     position: relative;
@@ -211,6 +215,11 @@ export default {
           background: url("../../assets/images/main/menu_chooe.png") no-repeat;
         }
       }
+      .mid{
+        display: flex;
+        width: 700px;
+        height: 80px;
+      }
 
       .middle {
         flex: 1;
@@ -295,7 +304,7 @@ export default {
   .main-data{
     position: relative;
     z-index:3;
- 
+
   }
 
   .map-bg{