|
@@ -2,15 +2,16 @@
|
2
|
2
|
<div class="body-wrapper">
|
3
|
3
|
<el-tabs v-model="activeName">
|
4
|
4
|
<el-tab-pane label="泊位占用率" name="泊位占用率">
|
5
|
|
- <div style="height: 350px">
|
|
5
|
+ <div style="height: 500px">
|
6
|
6
|
<linechart
|
7
|
7
|
v-if="activeName === '泊位占用率'"
|
8
|
8
|
:autoStop="false"
|
9
|
9
|
:top="30"
|
10
|
|
- :bottom="30"
|
|
10
|
+ :bottom="180"
|
11
|
11
|
:left="40"
|
12
|
12
|
:legendTop="0"
|
13
|
13
|
yAxisName="(%)"
|
|
14
|
+ :xlabelFormat="xLabelFormat"
|
14
|
15
|
:dataset="linedata"
|
15
|
16
|
:tooltipFormat="lineTooltipFormat"
|
16
|
17
|
:encode="[
|
|
@@ -85,6 +86,10 @@ export default {
|
85
|
86
|
watch: {
|
86
|
87
|
},
|
87
|
88
|
methods: {
|
|
89
|
+ xLabelFormat(name) {
|
|
90
|
+ var str = name.split("");
|
|
91
|
+ return str.join("\n");
|
|
92
|
+ },
|
88
|
93
|
getLineData() {
|
89
|
94
|
api.tcskfx1().then(res => {
|
90
|
95
|
this.linedata = res.data || []
|