duwendi 1 рік тому
батько
коміт
2af5fdb4d8

+ 4 - 0
src/assets/css/element_ui.css

@@ -434,3 +434,7 @@ cur-select {
434 434
 .el-date-editor .el-range-input, .el-tabs__item, .el-select-dropdown__item {
435 435
   font-size: 0.625vw;
436 436
 }
437
+
438
+.el-date-editor .el-range__icon {
439
+  line-height: 24px;
440
+}

+ 1 - 1
src/components/barChart.vue

@@ -212,7 +212,7 @@ export default {
212 212
   }
213 213
   .bar-tooltip {
214 214
     padding: 10px 20px;
215
-    font-size: 16px;
215
+    font-size: 12px;
216 216
     background: url("../../static/img/u231.png");
217 217
     background-size: 100% 100%;
218 218
   }

+ 1 - 1
src/components/pieChart.vue

@@ -3,7 +3,7 @@
3 3
 </template>
4 4
 
5 5
 <script>
6
-const colors = ["#db6749", "#f8cd55", "#3c97d6", "#989bf8"];
6
+const colors = ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"];
7 7
 import * as echarts from 'echarts'
8 8
 export default {
9 9
   props: {

+ 67 - 73
src/pages/index/components/berths_revenue.vue

@@ -35,11 +35,11 @@
35 35
         <el-button type="primary" @click="queryAll">查询</el-button>
36 36
       </el-form-item>
37 37
     </el-form>
38
-    <div style="width: 100%;">
39
-      <div style="width: 100%;height: 400px;">
38
+    <div style="width: 100%; display: flex; flex-wrap: wrap;">
39
+      <div style="width: 50%;height: 220px;">
40 40
         <h5 style="color: white">按小时统计</h5>
41
-        <br>
42
-        <linechart
41
+        <div style="width: 100%;height: 200px;">
42
+          <linechart
43 43
           :autoStop="false"
44 44
           :top="30"
45 45
           :bottom="30"
@@ -52,91 +52,85 @@
52 52
               { x: 'mouth', y: 'lastAmount', seriesName: '',bool:'true' },
53 53
             ]"
54 54
           id="axstj"
55
-        />
55
+          />
56
+        </div>
56 57
       </div>
57
-      <br>
58
-      <br>
59
-      <br>
60
-      <div style="width: 100%;height: 400px;">
61
-        <h5 style="color: white">按日统计</h5>
62
-        <br>
63
-        <linechart
64
-          :autoStop="false"
65
-          :top="30"
66
-          :bottom="30"
67
-          :left="40"
68
-          :legendTop="0"
69
-          yAxisName="(元)"
70
-          :dataset="linedata2"
71
-          :tooltipFormat="lineTooltipFormat"
72
-          :encode="[
58
+        <div style="width: 50%;height: 220px;">
59
+          <h5 style="color: white">按日统计</h5>
60
+          <div style="width: 100%;height: 200px;">
61
+            <linechart
62
+              :autoStop="false"
63
+              :top="30"
64
+              :bottom="30"
65
+              :left="40"
66
+              :legendTop="0"
67
+              yAxisName="(元)"
68
+              :dataset="linedata2"
69
+              :tooltipFormat="lineTooltipFormat"
70
+              :encode="[
73 71
                { x: 'mouth', y: 'lastAmount', seriesName: '',bool:'true' },
74 72
             ]"
75
-          id="artj"
76
-        />
73
+              id="artj"
74
+            />
75
+          </div>
77 76
       </div>
78
-      <br>
79
-      <br>
80
-      <br>
81
-      <div style="width: 100%;height: 400px;">
77
+      <div style="width: 50%;height: 220px;">
82 78
         <h5 style="color: white">按周统计</h5>
83
-        <br>
84
-        <linechart
85
-          :autoStop="false"
86
-          :top="30"
87
-          :bottom="30"
88
-          :left="40"
89
-          :legendTop="0"
90
-          yAxisName="(元)"
91
-          :dataset="linedata3"
92
-          :tooltipFormat="lineTooltipFormat"
93
-          :encode="[
79
+        <div style="width: 100%;height: 200px;">
80
+          <linechart
81
+            :autoStop="false"
82
+            :top="30"
83
+            :bottom="30"
84
+            :left="40"
85
+            :legendTop="0"
86
+            yAxisName="(元)"
87
+            :dataset="linedata3"
88
+            :tooltipFormat="lineTooltipFormat"
89
+            :encode="[
94 90
               { x: 'mouth', y: 'lastAmount', seriesName: '',bool:'true' },
95 91
             ]"
96
-          id="aztj"
97
-        />
92
+            id="aztj"
93
+          />
94
+        </div>
98 95
       </div>
99
-      <br>
100
-      <br>
101
-      <br>
102
-      <div style="width: 100%;height: 400px;">
96
+      <div style="width: 50%;height: 220px;">
103 97
         <h5 style="color: white">按月统计</h5>
104
-        <br>
105
-        <linechart
106
-          :autoStop="false"
107
-          :top="30"
108
-          :bottom="30"
109
-          :left="40"
110
-          :legendTop="0"
111
-          yAxisName="(元)"
112
-          :dataset="linedata4"
113
-          :tooltipFormat="lineTooltipFormat"
114
-          :encode="[
98
+        <div style="width: 100%;height: 200px;">
99
+          <linechart
100
+            :autoStop="false"
101
+            :top="30"
102
+            :bottom="30"
103
+            :left="40"
104
+            :legendTop="0"
105
+            yAxisName="(元)"
106
+            :dataset="linedata4"
107
+            :tooltipFormat="lineTooltipFormat"
108
+            :encode="[
115 109
               { x: 'mouth', y: 'lastAmount', seriesName: '',bool:'true' },
116 110
             ]"
117
-          id="aytj"
118
-        />
111
+            id="aytj"
112
+          />
113
+        </div>
119 114
       </div>
120 115
       <br>
121
-      <br>
122
-      <br>
123
-      <div style="width: 100%;height: 400px;">
116
+      <div style="width: 100%;height: 220px;">
124 117
         <h5 style="color: white">按年统计</h5>
125
-        <br>
126
-        <linechart
127
-          :autoStop="false"
128
-          :top="30"
129
-          :bottom="30"
130
-          :left="40"
131
-          :legendTop="0"
132
-          yAxisName="(元)"
133
-          :dataset="linedata5"
134
-          :tooltipFormat="lineTooltipFormat"
135
-          :encode="[
118
+        <div style="width: 100%;height: 220px;">
119
+          <linechart
120
+            :autoStop="false"
121
+            :top="30"
122
+            :bottom="30"
123
+            :left="40"
124
+            :legendTop="0"
125
+            yAxisName="(元)"
126
+            :dataset="linedata5"
127
+            :tooltipFormat="lineTooltipFormat"
128
+            :encode="[
136 129
               { x: 'mouth', y: 'lastAmount', seriesName: '',bool:'true' },
137 130
             ]"
138
-          id="antj"
139
-        />
131
+            id="antj"
132
+          />
133
+        </div>
140 134
       </div>
141 135
 
142 136
 

+ 10 - 0
src/pages/index/components/berths_usage.vue

@@ -211,6 +211,16 @@ export default {
211 211
       this.dashBerthsUsageStat4(params)
212 212
       this.dashBerthsUsageStat5(params)
213 213
     },
214
+    lineTooltipFormat(params) {
215
+      return `<div class="line-tooltip">
216
+        <div style="color: ${params[1].color}">${params[1].seriesName}: ${
217
+        params[0].data.thisYearAmount || "--"
218
+      }(元)</div>
219
+        <div style="color: ${params[0].color}">${params[0].seriesName}: ${
220
+        params[0].data.lastYearAmount || "--"
221
+      }(元)</div>
222
+      </div>`;
223
+    },
214 224
     dashBerthsUsageStat1(params){
215 225
       api.dashBerthsUsageStat1(params).then(res =>{
216 226
         this.linedata = res.data

+ 11 - 12
src/pages/index/components/other_analyse.vue

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3 3
     <div class="charts">
4
-      <div style="width: 50%;height: 500px">
4
+      <div style="width: 50%;height: 220px">
5 5
         <h5 style="color: white">区域分析</h5>
6 6
         <br>
7 7
         <barchart
@@ -12,6 +12,7 @@
12 12
           :bottom="30"
13 13
           :xlabelFormat="xLabelFormat1"
14 14
           :top="60"
15
+          :left="60"
15 16
           yAxisName="(停车次数)"
16 17
           :tooltip="tooltipFormat1"
17 18
           :dataset="bardata"
@@ -23,15 +24,14 @@
23 24
         />
24 25
       </div>
25 26
 
26
-      <div style="width: 50%;height: 500px;">
27
+      <div style="width: 50%;height: 220px;">
27 28
         <h5 style="color: white">车场数量</h5>
28 29
         <br>
29 30
         <piechart
30 31
           class="model-pie-body"
31 32
           id="ccsl"
32
-          :radiusArr="['30%', '70%']"
33
+          :radiusArr="['30%', '50%']"
33 34
           :roseType = "false"
34
-          :colorArr="ccsl"
35 35
           :labelFormat="['{name|{b}}', '{sub|{@value}个 {d}%}', '{hr|}']"
36 36
           :dataset="ccslvalue"
37 37
           :encode="{ itemName: 'name', value: 'value' }"
@@ -43,7 +43,7 @@
43 43
     <br>
44 44
     <br>
45 45
     <div class="charts">
46
-      <div style="width: 50%;height: 500px;">
46
+      <div style="width: 50%;height: 220px;">
47 47
         <h5 style="color: white">停车分布分析</h5>
48 48
         <br>
49 49
         <barchart
@@ -66,7 +66,7 @@
66 66
         />
67 67
       </div>
68 68
 
69
-      <div style="width: 50%;height: 500px;">
69
+      <div style="width: 50%;height: 220px;">
70 70
         <h5 style="color: white">余位分析</h5>
71 71
         <br>
72 72
         <barchart
@@ -97,13 +97,13 @@
97 97
     <br>
98 98
     <br>
99 99
     <div class="charts">
100
-      <div style="width: 50%;height: 500px;">
100
+      <div style="width: 50%;height: 220px;">
101 101
         <h5 style="color: white">停车热点分析</h5>
102 102
         <br>
103 103
         <div class="bottom" id="map"></div>
104 104
       </div>
105 105
 
106
-      <div style="width: 50%;height: 500px;">
106
+      <div style="width: 50%;height: 220px;">
107 107
         <h5 style="color: white">车流量分析</h5>
108 108
         <br>
109 109
         <linechart
@@ -130,7 +130,7 @@
130 130
     <br>
131 131
     <br>
132 132
     <div class="charts">
133
-      <div style="width: 50%;height: 500px;">
133
+      <div style="width: 50%;height:220px;">
134 134
         <h5 style="color: white">低利用率停车场分析</h5>
135 135
         <br>
136 136
         <barchart
@@ -152,7 +152,7 @@
152 152
         />
153 153
       </div>
154 154
 
155
-      <div style="width: 50%;height: 500px;">
155
+      <div style="width: 50%;height: 220px;">
156 156
         <h5 style="color: white">高峰路线分析</h5>
157 157
         <br>
158 158
         <div id="ChinaLineMap"></div>
@@ -165,7 +165,7 @@
165 165
     <br>
166 166
     <br>
167 167
     <div class="charts">
168
-      <div style="width: 50%;height: 500px;">
168
+      <div style="width: 50%;height: 220px;">
169 169
         <h5 style="color: white">车辆进场占比</h5>
170 170
         <br>
171 171
       <piechart
@@ -206,7 +206,6 @@ export default {
206 206
   },
207 207
   data() {
208 208
     return {
209
-      ccsl: ["#ff8700","#9078f8","#ff0000","#4cff37","#4382f6"],
210 209
       ccslvalue: [],
211 210
       bardata: [],
212 211
       tcfbfx: [],