Explorar el Código

屏幕分辨率

hujunwei hace 2 años
padre
commit
b339befcb6

+ 11 - 6
src/pages/main/leader/index.vue

@@ -25,7 +25,10 @@
             </el-col>
           </el-row>
           <el-row>
-            <el-col :span="24" style="background:#fff;margin-top:10px;border-radius: 5px;">
+            <el-col
+              :span="24"
+              style="background: #fff; margin-top: 10px; border-radius: 5px"
+            >
               <leaderTag :dynamicTags="dynamicTags"></leaderTag>
             </el-col>
           </el-row>
@@ -35,7 +38,10 @@
                 <hometask></hometask>
               </el-col>
               <el-col :span="6">
-                <numberhits :numHits="numHits"  :numHits1="numHits1"  ></numberhits>
+                <numberhits
+                  :numHits="numHits"
+                  :numHits1="numHits1"
+                ></numberhits>
               </el-col>
             </div>
             <div v-else>
@@ -100,15 +106,14 @@ export default {
       status: true,
       dynamicTags: [], //已添加的常用功能
       numHits: [], //点击率排行
-      numHits1:[],
+      numHits1: [],
       menuqList: [], //有权限的菜单
       dialogStatus: false,
-      datalist:[],
+      datalist: [],
       infolist: {},
     };
   },
   methods: {
-    
     //获取员工信息
     getpeo() {
       this.$http({
@@ -237,7 +242,7 @@ export default {
           }
         }
         this.numHits = newmen;
-        this.numHits1= newmen.slice(0, 10);
+        this.numHits1 = newmen.slice(0, 10);
       });
     },
   },

+ 4 - 0
src/pages/main/leader/leaderhomeTask.vue

@@ -702,6 +702,7 @@ export default {
   height: 484px;
   border-bottom-left-radius: 5px;
   border-bottom-right-radius: 5px;
+  width: 100%;
 }
 .pageBox {
 }
@@ -718,4 +719,7 @@ export default {
 ::v-deep .el-table th>.cell{
   padding:0px;
 }
+::v-deep .el-table__body-wrapper .is-scrolling-left{
+  overflow-x: hidden;
+}
 </style>

+ 1 - 1
src/pages/main/leader/numberHits.vue

@@ -253,7 +253,7 @@ export default {
       white-space: nowrap;
       overflow: hidden;
       text-overflow: ellipsis; /*超出部分省略号表示*/
-      max-width: 150px;
+      max-width: 120px;
       float: left;
     }
     svg {