dedsudiyu 1 месяц назад
Родитель
Сommit
80c50c8df2
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      src/views/components/subComponent.vue

+ 8 - 0
src/views/components/subComponent.vue

@@ -207,6 +207,12 @@
     },
     methods: {
       getSubData(item) {
+        if(item.userName){
+          item.userName = item.userName.indexOf('-') != -1 ? item.userName.split('-')[0] : item.userName;
+        }
+        if(item.headName){
+          item.headName = item.headName.indexOf('-') != -1 ? item.headName.split('-')[0] : item.headName;
+        }
         this.switchBox(item)
       },
       switchBox(obj) {
@@ -605,6 +611,7 @@
                     text-align: center;
                     font-size: 16px;
                     color: #FF2105;
+                    overflow: hidden;
                   }
                 }
                 .for-box:nth-child(3) {
@@ -838,6 +845,7 @@
             text-align: center;
             color: #fff;
             font-size: 16px;
+            overflow: hidden;
           }
         }
         .for-box:nth-child(3) {