Browse Source

路内路外补全

duwendi 1 year ago
parent
commit
eabd644019

+ 8 - 0
src/api/article_liao.js

@@ -65,6 +65,10 @@ export default {
65 65
   dashBerthRoadStat5(params){
66 66
     return axios.post('/dash/berth/road/stat5', params)
67 67
   },
68
+  //路内 路段饱和度分析
69
+  dashBerthRoadStat6(params) {
70
+    return axios.post('/dash/berth/road/stat6', params)
71
+  },
68 72
   //路外 饱和度分析
69 73
   dashBertRroadOutStat1(params){
70 74
     return axios.post('/dash/berth/road/out/stat1', params)
@@ -85,6 +89,10 @@ export default {
85 89
   dashBertRroadOutStat5(params){
86 90
     return axios.post('/dash/berth/road/out/stat5', params)
87 91
   },
92
+  //路外 路段饱和度分析
93
+  dashBertRroadOutStat6(params){
94
+    return axios.post('/dash/berth/road/out/stat6', params)
95
+  },
88 96
   //非法车辆类型占比
89 97
   dashVehicleViolationsStat1(params){
90 98
     return axios.post('/dash/vehicle/violations/stat1', params)

+ 27 - 8
src/pages/index/components/berth_road.vue

@@ -47,7 +47,7 @@
47 47
           :autoStop="false"
48 48
           :colorArr="['#ffd201', '#00eacb', '#01b4ff', '#5d78ff']"
49 49
           legendIcon="react"
50
-          :bottom="30"
50
+          :bottom="40"
51 51
           :xlabelFormat="xLabelFormat"
52 52
           :top="60"
53 53
           yAxisName="(个)"
@@ -65,7 +65,7 @@
65 65
         <linechart
66 66
           :autoStop="false"
67 67
           :top="30"
68
-          :bottom="30"
68
+          :bottom="40"
69 69
           :left="40"
70 70
           :legendTop="0"
71 71
           yAxisName="(%)"
@@ -130,12 +130,23 @@
130 130
           id="sxcyfzqk2"
131 131
         />
132 132
       </div>
133
-      <div style="width: 50%; height: 300px;margin-top: 5%;">
134
-        <div align="center" style="font-family: Arial, Helvetica, sans-serif">
135
-          <h5 style="color: rgb(47, 178, 77);">路段泊位饱和度合理性分析</h5>
136
-          <p style="margin-top: 5px;color: rgb(49, 97, 0);">根据泊位饱和度分析,周末泊位饱和度较高,</p>
137
-          <p style="color: rgb(49, 97, 0);">建议周末乘坐公共车辆或步行出门,响应绿色环保</p>
138
-        </div>
133
+      <div style="width: 50%; height: 300px;padding-left: 25px">
134
+        <div align="center" style="color: white">路段饱和度分析</div>
135
+        <linechart
136
+          :autoStop="false"
137
+          :top="30"
138
+          :bottom="30"
139
+          :left="40"
140
+          :legendTop="0"
141
+          yAxisName="(%)"
142
+          :dataset="linedata6"
143
+          :tooltipFormat="tooltipFormat"
144
+          :encode="[
145
+            {x: 'month', y: 'hs', seriesName: '占用'},
146
+            {x: 'month', y: 'cs', seriesName: '空闲'}
147
+            ]"
148
+          id="ldbhdfx"
149
+        />
139 150
       </div>
140 151
     </div>
141 152
   </div>
@@ -182,6 +193,7 @@ export default {
182 193
       linedata1: [],
183 194
       linedata2: [],
184 195
       bardata: [],
196
+      linedata6: []
185 197
     }
186 198
   },
187 199
   mounted() {
@@ -234,6 +246,7 @@ export default {
234 246
             this.dashBerthRoadStat3(params)
235 247
             this.dashBerthRoadStat4(params)
236 248
             this.dashBerthRoadStat5(params)
249
+            this.dashBerthRoadStat6(params)
237 250
           } else {
238 251
             this.$message({
239 252
               message: '结束时间不能早于开始时间!',
@@ -248,6 +261,7 @@ export default {
248 261
         this.dashBerthRoadStat3(params)
249 262
         this.dashBerthRoadStat4(params)
250 263
         this.dashBerthRoadStat5(params)
264
+        this.dashBerthRoadStat6(params)
251 265
       }
252 266
     },
253 267
     lineTooltipFormat1(params) {
@@ -302,6 +316,11 @@ export default {
302 316
         this.bardata = res.data
303 317
       })
304 318
     },
319
+    dashBerthRoadStat6(params){
320
+      api.dashBerthRoadStat6(params).then(res =>{
321
+        this.linedata6 = res.data
322
+      })
323
+    },
305 324
     dashBerthRoadStat2(params){
306 325
       api.dashBerthRoadStat2(params).then(res =>{
307 326
         this.linedata1 = res.data

+ 31 - 7
src/pages/index/components/berth_road_out.vue

@@ -109,7 +109,7 @@
109 109
       </div>
110 110
     </div>
111 111
     <div style="display: flex; justify-content: space-between;margin-top: 5%">
112
-      <div style="width: 50%; height: 300px;padding-left: 25px">
112
+      <div style="width: 50%; height: 220px;padding-left: 25px">
113 113
         <div align="center" style="color: white">车辆进出场趋势</div>
114 114
         <linechart
115 115
           :autoStop="false"
@@ -127,12 +127,23 @@
127 127
           id="sxcyfzqk2"
128 128
         />
129 129
       </div>
130
-      <div style="width: 50%; height: 300px;margin-top: 5%;">
131
-        <div align="center" style="font-family: Arial, Helvetica, sans-serif">
132
-          <h5 style="color: rgb(47, 178, 77);">路段泊位饱和度合理性分析</h5>
133
-          <h5 style="margin-top: 5px;color: rgb(49, 97, 0);">检测到周末泊位较饱和,建议适当增加泊位</h5>
134
-          <h5  style="margin-top: 5px;color: rgb(49, 97, 0);">检测到周末泊位周转率低,建议适当增加长时段停车费用</h5>
135
-        </div>
130
+      <div style="width: 50%; height: 400px;padding-left: 25px">
131
+        <div align="center" style="color: white">路段饱和度分析</div>
132
+        <linechart
133
+          :autoStop="false"
134
+          :top="30"
135
+          :bottom="180"
136
+          :left="40"
137
+          :legendTop="0"
138
+          yAxisName="(%)"
139
+          :dataset="linedata6"
140
+          :xlabelFormat="xLabelFormat1"
141
+          :tooltipFormat="tooltipFormat"
142
+          :encode="[
143
+            {x: 'mouth', y: 'hs', seriesName: '占用'},
144
+            {x: 'mouth', y: 'cs', seriesName: '空闲'}]"
145
+          id="sxcyfzqk3"
146
+        />
136 147
       </div>
137 148
     </div>
138 149
   </div>
@@ -178,6 +189,7 @@ export default {
178 189
       linedata1: [],
179 190
       linedata2: [],
180 191
       bardata: [],
192
+      linedata6: [],
181 193
 
182 194
     }
183 195
   },
@@ -199,6 +211,10 @@ export default {
199 211
     }
200 212
   },
201 213
   methods: {
214
+    xLabelFormat1(name) {
215
+      var str = name.split("");
216
+      return str.join("\n");
217
+    },
202 218
     validateEndTime(rule, value, callback) {
203 219
       if (this.formInline1.begin && this.formInline1.end) {
204 220
         const startTimestamp = new Date(this.formInline1.begin).getTime();
@@ -231,6 +247,7 @@ export default {
231 247
             this.dashBertRroadOutStat3(params)
232 248
             this.dashBertRroadOutStat4(params)
233 249
             this.dashBertRroadOutStat5(params)
250
+            this.dashBertRroadOutStat6(params)
234 251
           } else {
235 252
             this.$message({
236 253
               message: '结束时间不能早于开始时间!',
@@ -245,6 +262,7 @@ export default {
245 262
         this.dashBertRroadOutStat3(params)
246 263
         this.dashBertRroadOutStat4(params)
247 264
         this.dashBertRroadOutStat5(params)
265
+        this.dashBertRroadOutStat6(params)
248 266
       }
249 267
     },
250 268
     lineTooltipFormat1(params) {
@@ -315,6 +333,12 @@ export default {
315 333
         this.linedata2 = res.data
316 334
       })
317 335
     },
336
+    dashBertRroadOutStat6(params){
337
+      api.dashBertRroadOutStat6(params).then(res =>{
338
+        this.linedata6 = res.data.filter(item => item.mouth)
339
+        console.log(this.linedata6, '33333')
340
+      })
341
+    },
318 342
   }
319 343
 }
320 344
 </script>

+ 0 - 24
src/pages/index/components/other_analyse.vue

@@ -163,30 +163,6 @@
163 163
     <br>
164 164
     <br>
165 165
     <br>
166
-    <br>
167
-    <div class="charts">
168
-      <div style="width: 50%;height: 220px;">
169
-        <h5 style="color: white">车辆进场占比</h5>
170
-        <br>
171
-      <piechart
172
-          class="model-pie-body"
173
-          id="chart1"
174
-          :roseType="false"
175
-          :radiusArr="['30%', '70%']"
176
-          :colorArr="modelPieColor"
177
-          :labelFormat="['{name|{b}}', '{sub|{@value} {d}%}', '{hr|}']"
178
-          :dataset="zdcljcfx"
179
-          :encode="{ itemName: 'name', value: 'value' }"
180
-        />
181
-    </div>
182
-
183
-<!--      <div style="width: 50%;height: 500px;">-->
184
-<!--        <h5 style="color: white">重点车辆追踪</h5>-->
185
-<!--        <br>-->
186
-<!--        <div id="ChinaLineMap2"></div>-->
187
-<!--      </div>-->
188
-    </div>
189
-
190 166
   </div>
191 167
 </template>
192 168
 <script>