소스 검색

农业详情修改

wang_xy 2 년 전
부모
커밋
8a3579b81e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/datacenter.vue

+ 2 - 1
src/views/datacenter.vue

@@ -17,7 +17,8 @@
                      v-on:click="indentleftSetMarkers(item.key)">
                   <div class="iconfont icon icon-normal" :class="item.icon"></div>
                   <div class="icon-text">
-                    <h6>{{ item.count }}</h6>
+                    <h6 v-if=" item.count.length > 10">{{ item.count.substring(0,10) }}<br>{{item.count.substring(10)}}</h6>
+                    <h6 v-else>{{ item.count}}</h6>
                     <h5>{{ item.name }}</h5>
                   </div>
                 </div>