浏览代码

农业详情修改

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>