浏览代码

no message

duwendi 1 年之前
父节点
当前提交
0945cb8ae5
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/pages/index/components/business_overview.vue

+ 6 - 1
src/pages/index/components/business_overview.vue

@@ -60,6 +60,7 @@
60 60
           :left="40"
61 61
           :legendTop="0"
62 62
           yAxisName="(车次)"
63
+          :xlabelFormat="xLabelFormat1"
63 64
           :dataset="linedata"
64 65
           :tooltipFormat="lineTooltipFormat1"
65 66
           :encode="[
@@ -148,7 +149,7 @@
148 149
       <div style="width: 33%;height: 200px;">
149 150
         <h5 style="color: white">动态信息监控</h5>
150 151
         <el-table :data="tableData2" style="background: #2a2a2a;border-color: #333;">
151
-          <el-table-column v-for="(item, index) in columns2" :key="index" :label="item.label" :prop="item.key">
152
+          <el-table-column v-for="(item, index) in columns2"  show-overflow-tooltip :key="index" :label="item.label" :prop="item.key">
152 153
           </el-table-column>
153 154
         </el-table>
154 155
         <div class="table-pagination">
@@ -278,6 +279,10 @@ export default {
278 279
     clearInterval(this.interval)
279 280
   },
280 281
   methods: {
282
+    xLabelFormat1(name) {
283
+      var str = name.split("");
284
+      return str.join("\n");
285
+    },
281 286
     dashAccessDataAnalysisStat1(){
282 287
       api_l.dashAccessDataAnalysisStat1().then(res =>{
283 288
         this.bardata = res.data