Browse Source

样式调整

duwendi 1 year ago
parent
commit
d6dc1331fa
1 changed files with 10 additions and 4 deletions
  1. 10 4
      src/pages/index/components/berth_peration_nalysis.vue

+ 10 - 4
src/pages/index/components/berth_peration_nalysis.vue

@@ -2,15 +2,16 @@
2 2
   <div class="body-wrapper">
3 3
     <div class="page-container">
4 4
       <h2 style="color: #3498db;">泊位运营分析</h2>
5
-      <div style="width: 99%; height: 350px">
5
+      <div style="width: 99%; height: 480px">
6 6
         <linechart
7 7
           :autoStop="false"
8 8
           :top="30"
9
-          :bottom="30"
9
+          :bottom="180"
10 10
           :left="40"
11 11
           :legendTop="0"
12 12
           yAxisName="(停车数)"
13 13
           :dataset="linedata"
14
+          :xlabelFormat="taskFinishXFormat"
14 15
           :tooltipFormat="lineTooltipFormat"
15 16
           :encode="[
16 17
               { x: 'month', y: 'lastAmount', seriesName: '泊位盈余情况',bool:'true' },
@@ -18,13 +19,14 @@
18 19
           id="sxcyfzqk"
19 20
         />
20 21
       </div>
21
-      <div style="width: 99%; height: 350px">
22
+      <div style="width: 99%; height: 480px">
22 23
         <linechart
23 24
           :autoStop="false"
24 25
           :top="30"
25
-          :bottom="30"
26
+          :bottom="180"
26 27
           :left="40"
27 28
           :legendTop="0"
29
+          :xlabelFormat="taskFinishXFormat"
28 30
           yAxisName="(平均周转次数)"
29 31
           :dataset="linedata1"
30 32
           :tooltipFormat="lineTooltipFormat1"
@@ -62,6 +64,10 @@ export default {
62 64
 
63 65
   },
64 66
   methods: {
67
+    taskFinishXFormat(name) {
68
+      var str = name.split("");
69
+      return str.join("\n");
70
+    },
65 71
     getLinedata1Data(){
66 72
       api.queryBerthPerationNalysis_Bwzzlfx().then(res=>{
67 73
         this.linedata1=res.data;