jwyu 1 жил өмнө
parent
commit
fc3b3573db

+ 15 - 1
src/views/report_manage/reportVarietyV2.vue

@@ -62,7 +62,7 @@
                         </span>
                     </div>
                     <div class="name-box">
-                        <div class="name" >{{item.PermissionName}}</div>
+                        <div class="name">{{item.PermissionName}}</div>
                         <img v-if="isShowEdit" @click="handleShowEdit(item)" class="icon-edit" src="~@/assets/img/icons/variety_name_edit.png" alt="">
                     </div>
                     <template v-if="typeVal==1&&permissionBtn.isShowBtn('reportVariety','zhPublicSet')">
@@ -474,6 +474,12 @@ export default {
                     &.active{
                         background-color: #ECF2FE;
                     }
+                    .name{
+                        flex: 1;
+                        overflow: hidden;
+                        white-space: nowrap;
+                        text-overflow: ellipsis;
+                    }
                     .menu-box{
                         display: flex;
                         gap: 0 10px;
@@ -518,6 +524,14 @@ export default {
                 justify-content: center;
                 .name{
                     font-size: 18px;
+                    flex: 1;
+                    text-align: center;
+                    display: -webkit-box;
+                    overflow: hidden;
+                    text-overflow: ellipsis;
+                    -webkit-line-clamp: 2;
+                    line-break: anywhere;
+                    -webkit-box-orient: vertical;
                 }
                 .icon-edit{
                     width: 16px;