Browse Source

路内路外补全

duwendi 1 year ago
parent
commit
eabd644019

+ 8 - 0
src/api/article_liao.js

@@ -65,6 +65,10 @@ export default {
65
   dashBerthRoadStat5(params){
65
   dashBerthRoadStat5(params){
66
     return axios.post('/dash/berth/road/stat5', params)
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
   dashBertRroadOutStat1(params){
73
   dashBertRroadOutStat1(params){
70
     return axios.post('/dash/berth/road/out/stat1', params)
74
     return axios.post('/dash/berth/road/out/stat1', params)
@@ -85,6 +89,10 @@ export default {
85
   dashBertRroadOutStat5(params){
89
   dashBertRroadOutStat5(params){
86
     return axios.post('/dash/berth/road/out/stat5', params)
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
   dashVehicleViolationsStat1(params){
97
   dashVehicleViolationsStat1(params){
90
     return axios.post('/dash/vehicle/violations/stat1', params)
98
     return axios.post('/dash/vehicle/violations/stat1', params)

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

@@ -47,7 +47,7 @@
47
           :autoStop="false"
47
           :autoStop="false"
48
           :colorArr="['#ffd201', '#00eacb', '#01b4ff', '#5d78ff']"
48
           :colorArr="['#ffd201', '#00eacb', '#01b4ff', '#5d78ff']"
49
           legendIcon="react"
49
           legendIcon="react"
50
-          :bottom="30"
50
+          :bottom="40"
51
           :xlabelFormat="xLabelFormat"
51
           :xlabelFormat="xLabelFormat"
52
           :top="60"
52
           :top="60"
53
           yAxisName="(个)"
53
           yAxisName="(个)"
@@ -65,7 +65,7 @@
65
         <linechart
65
         <linechart
66
           :autoStop="false"
66
           :autoStop="false"
67
           :top="30"
67
           :top="30"
68
-          :bottom="30"
68
+          :bottom="40"
69
           :left="40"
69
           :left="40"
70
           :legendTop="0"
70
           :legendTop="0"
71
           yAxisName="(%)"
71
           yAxisName="(%)"
@@ -130,12 +130,23 @@
130
           id="sxcyfzqk2"
130
           id="sxcyfzqk2"
131
         />
131
         />
132
       </div>
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
       </div>
150
       </div>
140
     </div>
151
     </div>
141
   </div>
152
   </div>
@@ -182,6 +193,7 @@ export default {
182
       linedata1: [],
193
       linedata1: [],
183
       linedata2: [],
194
       linedata2: [],
184
       bardata: [],
195
       bardata: [],
196
+      linedata6: []
185
     }
197
     }
186
   },
198
   },
187
   mounted() {
199
   mounted() {
@@ -234,6 +246,7 @@ export default {
234
             this.dashBerthRoadStat3(params)
246
             this.dashBerthRoadStat3(params)
235
             this.dashBerthRoadStat4(params)
247
             this.dashBerthRoadStat4(params)
236
             this.dashBerthRoadStat5(params)
248
             this.dashBerthRoadStat5(params)
249
+            this.dashBerthRoadStat6(params)
237
           } else {
250
           } else {
238
             this.$message({
251
             this.$message({
239
               message: '结束时间不能早于开始时间!',
252
               message: '结束时间不能早于开始时间!',
@@ -248,6 +261,7 @@ export default {
248
         this.dashBerthRoadStat3(params)
261
         this.dashBerthRoadStat3(params)
249
         this.dashBerthRoadStat4(params)
262
         this.dashBerthRoadStat4(params)
250
         this.dashBerthRoadStat5(params)
263
         this.dashBerthRoadStat5(params)
264
+        this.dashBerthRoadStat6(params)
251
       }
265
       }
252
     },
266
     },
253
     lineTooltipFormat1(params) {
267
     lineTooltipFormat1(params) {
@@ -302,6 +316,11 @@ export default {
302
         this.bardata = res.data
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
     dashBerthRoadStat2(params){
324
     dashBerthRoadStat2(params){
306
       api.dashBerthRoadStat2(params).then(res =>{
325
       api.dashBerthRoadStat2(params).then(res =>{
307
         this.linedata1 = res.data
326
         this.linedata1 = res.data

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

@@ -109,7 +109,7 @@
109
       </div>
109
       </div>
110
     </div>
110
     </div>
111
     <div style="display: flex; justify-content: space-between;margin-top: 5%">
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
         <div align="center" style="color: white">车辆进出场趋势</div>
113
         <div align="center" style="color: white">车辆进出场趋势</div>
114
         <linechart
114
         <linechart
115
           :autoStop="false"
115
           :autoStop="false"
@@ -127,12 +127,23 @@
127
           id="sxcyfzqk2"
127
           id="sxcyfzqk2"
128
         />
128
         />
129
       </div>
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
       </div>
147
       </div>
137
     </div>
148
     </div>
138
   </div>
149
   </div>
@@ -178,6 +189,7 @@ export default {
178
       linedata1: [],
189
       linedata1: [],
179
       linedata2: [],
190
       linedata2: [],
180
       bardata: [],
191
       bardata: [],
192
+      linedata6: [],
181
 
193
 
182
     }
194
     }
183
   },
195
   },
@@ -199,6 +211,10 @@ export default {
199
     }
211
     }
200
   },
212
   },
201
   methods: {
213
   methods: {
214
+    xLabelFormat1(name) {
215
+      var str = name.split("");
216
+      return str.join("\n");
217
+    },
202
     validateEndTime(rule, value, callback) {
218
     validateEndTime(rule, value, callback) {
203
       if (this.formInline1.begin && this.formInline1.end) {
219
       if (this.formInline1.begin && this.formInline1.end) {
204
         const startTimestamp = new Date(this.formInline1.begin).getTime();
220
         const startTimestamp = new Date(this.formInline1.begin).getTime();
@@ -231,6 +247,7 @@ export default {
231
             this.dashBertRroadOutStat3(params)
247
             this.dashBertRroadOutStat3(params)
232
             this.dashBertRroadOutStat4(params)
248
             this.dashBertRroadOutStat4(params)
233
             this.dashBertRroadOutStat5(params)
249
             this.dashBertRroadOutStat5(params)
250
+            this.dashBertRroadOutStat6(params)
234
           } else {
251
           } else {
235
             this.$message({
252
             this.$message({
236
               message: '结束时间不能早于开始时间!',
253
               message: '结束时间不能早于开始时间!',
@@ -245,6 +262,7 @@ export default {
245
         this.dashBertRroadOutStat3(params)
262
         this.dashBertRroadOutStat3(params)
246
         this.dashBertRroadOutStat4(params)
263
         this.dashBertRroadOutStat4(params)
247
         this.dashBertRroadOutStat5(params)
264
         this.dashBertRroadOutStat5(params)
265
+        this.dashBertRroadOutStat6(params)
248
       }
266
       }
249
     },
267
     },
250
     lineTooltipFormat1(params) {
268
     lineTooltipFormat1(params) {
@@ -315,6 +333,12 @@ export default {
315
         this.linedata2 = res.data
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
 </script>
344
 </script>

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

@@ -163,30 +163,6 @@
163
     <br>
163
     <br>
164
     <br>
164
     <br>
165
     <br>
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
   </div>
166
   </div>
191
 </template>
167
 </template>
192
 <script>
168
 <script>