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