Browse Source

合并

合并
烬玊 1 year ago
parent
commit
d798b98fe9

+ 55 - 1
src/api/article_liao.js

@@ -44,6 +44,60 @@ export default {
44 44
   //路段泊位周转率
45 45
   dashBerthRoadStat2(params) {
46 46
     return axios.post('/dash/berth/road/stat2', params)
47
-  }
47
+  },
48
+  //路内 特殊车辆进场占比
49
+  dashBerthRoadStat3(params){
50
+    return axios.post('/dash/berth/road/stat3', params)
51
+  },
52
+  //路内 路段泊位营收分析
53
+  dashBerthRoadStat4(params){
54
+    return axios.post('/dash/berth/road/stat4', params)
55
+  },
56
+  //路内 车辆出场分析
57
+  dashBerthRoadStat5(params){
58
+    return axios.post('/dash/berth/road/stat5', params)
59
+  },
60
+  //路外 饱和度分析
61
+  dashBertRroadOutStat1(params){
62
+    return axios.post('/dash/berth/road/out/stat1', params)
63
+  },
64
+  //路外 路段泊位周转率
65
+  dashBertRroadOutStat2(params){
66
+    return axios.post('/dash/berth/road/out/stat2', params)
67
+  },
68
+  //路外 特殊车辆进场占比
69
+  dashBertRroadOutStat3(params){
70
+    return axios.post('/dash/berth/road/out/stat3', params)
71
+  },
72
+  //路外 泊位营收分析
73
+  dashBertRroadOutStat4(params){
74
+    return axios.post('/dash/berth/road/out/stat4', params)
75
+  },
76
+  //路外 车辆进出场趋势
77
+  dashBertRroadOutStat5(params){
78
+    return axios.post('/dash/berth/road/out/stat5', params)
79
+  },
80
+  //非法车辆类型占比
81
+  dashVehicleViolationsStat1(params){
82
+    return axios.post('/dash/vehicle/violations/stat1', params)
83
+  },
84
+  //车辆违规停放行为占比
85
+  dashVehicleViolationsStat2(params){
86
+    return axios.post('/dash/vehicle/violations/stat2', params)
87
+  },
88
+  //车辆异常行为分析
89
+  dashVehicleViolationsStat3(params){
90
+    return axios.post('/dash/vehicle/violations/stat3', params)
91
+  },
92
+  //接入数据分析(柱状图)
93
+  dashAccessDataAnalysisStat1(params){
94
+    return axios.post('/dash/access/data/analysis/stat1', params)
95
+  },
96
+  //接入数据分析(饼图)
97
+  dashAccessDataAnalysisStat2(params){
98
+    return axios.post('/dash/access/data/analysis/stat2', params)
99
+  },
100
+
101
+
48 102
 
49 103
 }

+ 16 - 12
src/pages/index/components/access_data_analysis.vue

@@ -57,7 +57,7 @@
57 57
 <script>
58 58
 import piechart from "@/components/pieChart";
59 59
 import barchart from "@/components/barChart";
60
-
60
+import api from "@/api/article_liao";
61 61
 
62 62
 export default {
63 63
   components: {
@@ -90,20 +90,14 @@ export default {
90 90
       modelPieColor: ["#4382f6", "#9078f8", "#79a7db", "#FF9800", "#9C27B0"],
91 91
       modelPieColor1: ["#4382f6", "#9078f8", "#6aa1e1", "#FF9800", "#9C27B0"],
92 92
       modelData: {
93
-        list: [{name: '东南卡口', value: 320}, {name: '西北卡口', value:251}, {
94
-          name: '正北卡口',
95
-          value:185
96
-        }, {name: '正东卡口', value:120}, {name: '正南卡口', value:620}]
93
+        list: []
97 94
       },
98
-      bardata: [{month: '市图书馆停车场', hs: 300, cs: 50}, {
99
-        month: '中山公园停车场',
100
-        hs: 200,
101
-        cs: 100
102
-      }, {month: '天地广场停车场', hs: 500, cs: 30}
103
-        , {month: '市中心医院停车场', hs: 450, cs: 50}, {month: '建设路停车场', hs: 355, cs: 90}],
95
+      bardata: [],
104 96
     }
105 97
   },
106 98
   mounted() {
99
+    this.dashAccessDataAnalysisStat1()
100
+    this.dashAccessDataAnalysisStat2()
107 101
   },
108 102
   watch: {},
109 103
   methods: {
@@ -124,7 +118,17 @@ export default {
124 118
         nameArr.push(name.substring(i, i + 7))
125 119
       }
126 120
       return nameArr.join('\n');
127
-    }
121
+    },
122
+    dashAccessDataAnalysisStat1(){
123
+      api.dashAccessDataAnalysisStat1().then(res =>{
124
+        this.bardata = res.data
125
+      })
126
+    },
127
+    dashAccessDataAnalysisStat2(){
128
+      api.dashAccessDataAnalysisStat2().then(res =>{
129
+        this.modelData.list = res.data
130
+      })
131
+    },
128 132
   }
129 133
 }
130 134
 </script>

+ 21 - 7
src/pages/index/components/berth_road.vue

@@ -120,21 +120,20 @@ export default {
120 120
     return {
121 121
       modelPieColor: ["#4382f6", "#9078f8", "#79a7db", "#FF9800"],
122 122
       modelData: {
123
-        list: [{name: '建筑车', value: 30}, {name: '危险品车', value:4}, {name: '特种车', value:32}, {name: '残疾人车', value:34}]
123
+        list: []
124 124
       },
125
-      linedata: [{month: '星期一',lastYearAmount: 44, thisYearAmount: 440}, {month: '星期二', lastYearAmount:55, thisYearAmount:505}
126
-        , {month: '星期三', lastYearAmount:71, thisYearAmount:414}, {month: '星期四', lastYearAmount:67, thisYearAmount:301}, {month: '星期五', lastYearAmount:52, thisYearAmount:327}
127
-        , {month: '星期六', lastYearAmount:103, thisYearAmount:413}, {month: '星期天', lastYearAmount:89, thisYearAmount:671}],
125
+      linedata: [],
128 126
       linedata1: [],
129
-      linedata2: [{month: '星期一',lastYearAmount: 21, thisYearAmount: 31}, {month: '星期二', lastYearAmount:38, thisYearAmount:32}
130
-        , {month: '星期三', lastYearAmount:27, thisYearAmount:43}, {month: '星期四', lastYearAmount:43, thisYearAmount:45}, {month: '星期五', lastYearAmount:42, thisYearAmount:44}
131
-        , {month: '星期六', lastYearAmount:78, thisYearAmount:52}, {month: '星期天', lastYearAmount:90, thisYearAmount:67}],
127
+      linedata2: [],
132 128
       bardata: [],
133 129
     }
134 130
   },
135 131
   mounted() {
136 132
     this.dashBerthRoadStat1()
137 133
     this.dashBerthRoadStat2()
134
+    this.dashBerthRoadStat3()
135
+    this.dashBerthRoadStat4()
136
+    this.dashBerthRoadStat5()
138 137
   },
139 138
   watch: {
140 139
 
@@ -197,6 +196,21 @@ export default {
197 196
         this.linedata1 = res.data
198 197
       })
199 198
     },
199
+    dashBerthRoadStat3(){
200
+      api.dashBerthRoadStat3().then(res =>{
201
+        this.modelData.list = res.data
202
+      })
203
+    },
204
+    dashBerthRoadStat4(){
205
+      api.dashBerthRoadStat4().then(res =>{
206
+        this.linedata = res.data
207
+      })
208
+    },
209
+    dashBerthRoadStat5(){
210
+      api.dashBerthRoadStat5().then(res =>{
211
+        this.linedata2 = res.data
212
+      })
213
+    },
200 214
   }
201 215
 }
202 216
 </script>

+ 36 - 14
src/pages/index/components/berth_road_out.vue

@@ -106,7 +106,7 @@ import piechart from "@/components/pieChart";
106 106
 import linechart from "@/components/lineChart";
107 107
 import barchart from "@/components/barChart";
108 108
 import vtable from "@/components/vtableNew";
109
-
109
+import api from "@/api/article_liao";
110 110
 
111 111
 export default {
112 112
   components: {
@@ -119,24 +119,21 @@ export default {
119 119
     return {
120 120
       modelPieColor: ["#4382f6", "#9078f8", "#79a7db", "#FF9800"],
121 121
       modelData: {
122
-        list: [{name: '建筑车', value: 23}, {name: '危险品车', value:5}, {name: '特种车', value:27}, {name: '残疾人车', value:45}]
122
+        list: []
123 123
       },
124
-      linedata: [{month: '星期一',lastYearAmount: 2300, thisYearAmount: 4740}, {month: '星期二', lastYearAmount:3050, thisYearAmount:5600}
125
-        , {month: '星期三', lastYearAmount:2710, thisYearAmount:3781}, {month: '星期四', lastYearAmount:2670, thisYearAmount:4737}, {month: '星期五', lastYearAmount:3200, thisYearAmount:5252}
126
-        , {month: '星期六', lastYearAmount:4030, thisYearAmount:6160}, {month: '星期天', lastYearAmount:4890, thisYearAmount:6979}],
127
-      linedata1: [{month: '星期一', lastAmount: 38}, {month: '星期二', lastAmount:41}
128
-        , {month: '星期三', lastAmount:33}, {month: '星期四', lastAmount:23}, {month: '星期五', lastAmount:35}
129
-        , {month: '星期六', lastAmount:45}, {month: '星期天', lastAmount:59}],
130
-      linedata2: [{month: '星期一',lastYearAmount: 21, thisYearAmount: 51}, {month: '星期二', lastYearAmount:38, thisYearAmount:42}
131
-        , {month: '星期三', lastYearAmount:27, thisYearAmount:25}, {month: '星期四', lastYearAmount:23, thisYearAmount:20}, {month: '星期五', lastYearAmount:52, thisYearAmount:34}
132
-        , {month: '星期六', lastYearAmount:58, thisYearAmount:32}, {month: '星期天', lastYearAmount:67, thisYearAmount:37}],
133
-      bardata: [{month: '星期一', hs: 1200, cs: 600},{month: '星期二', hs:1100, cs:700}
134
-        ,{month: '星期三', hs:1070, cs:730},{month: '星期四', hs:1130, cs:670},{month: '星期五', hs:1070, cs:730}
135
-        ,{month: '星期六', hs:1610, cs:190},{month: '星期天', hs:1690, cs:110},],
124
+      linedata: [],
125
+      linedata1: [],
126
+      linedata2: [],
127
+      bardata: [],
136 128
 
137 129
     }
138 130
   },
139 131
   mounted() {
132
+    this.dashBertRroadOutStat1()
133
+    this.dashBertRroadOutStat2()
134
+    this.dashBertRroadOutStat3()
135
+    this.dashBertRroadOutStat4()
136
+    this.dashBertRroadOutStat5()
140 137
   },
141 138
   watch: {
142 139
 
@@ -190,6 +187,31 @@ export default {
190 187
         params[0].data.cs || "--"}个</div>
191 188
 </div>`;
192 189
     },
190
+    dashBertRroadOutStat1(){
191
+      api.dashBertRroadOutStat1().then(res =>{
192
+        this.bardata = res.data
193
+      })
194
+    },
195
+    dashBertRroadOutStat2(){
196
+      api.dashBertRroadOutStat2().then(res =>{
197
+        this.linedata1 = res.data
198
+      })
199
+    },
200
+    dashBertRroadOutStat3(){
201
+      api.dashBertRroadOutStat3().then(res =>{
202
+        this.modelData.list = res.data
203
+      })
204
+    },
205
+    dashBertRroadOutStat4(){
206
+      api.dashBertRroadOutStat4().then(res =>{
207
+        this.linedata = res.data
208
+      })
209
+    },
210
+    dashBertRroadOutStat5(){
211
+      api.dashBertRroadOutStat5().then(res =>{
212
+        this.linedata2 = res.data
213
+      })
214
+    },
193 215
   }
194 216
 }
195 217
 </script>

+ 22 - 4
src/pages/index/components/vehicle_violations.vue

@@ -60,6 +60,7 @@ import piechart from "@/components/pieChart";
60 60
 import linechart from "@/components/lineChart";
61 61
 import barchart from "@/components/barChart";
62 62
 import vtable from "@/components/vtableNew";
63
+import api from "@/api/article_liao";
63 64
 
64 65
 
65 66
 export default {
@@ -73,17 +74,19 @@ export default {
73 74
     return {
74 75
       modelPieColor: ["#4382f6", "#9078f8", "#79a7db", "#FF9800"],
75 76
       modelData: {
76
-        list: [{name: '微型车', value: 17}, {name: '小型车', value:45}, {name: '中型车', value:30}, {name: '大型车', value:8}]
77
+        list: []
77 78
       },
78 79
       modelPieColor1: ["#4382f6", "#9078f8", "#79a7db", "#FF9800"],
79 80
       modelData1: {
80
-        list: [{name: '消防通道', value: 17}, {name: '残疾人车位', value:30}, {name: '其他行为', value:45}, {name: '占用急救车通道', value:8}]
81
+        list: []
81 82
       },
82
-      bardata: [{month: '刮蹭', hs: 24, cs: 10},{month: '不规律行驶', hs:30, cs:15}
83
-        ,{month: '疲劳驾驶', hs:25, cs:8},{month: '超车', hs:35, cs:20},{month: '套牌', hs:15, cs:11},],
83
+      bardata: [],
84 84
     }
85 85
   },
86 86
   mounted() {
87
+    this.dashVehicleViolationsStat1()
88
+    this.dashVehicleViolationsStat2()
89
+    this.dashVehicleViolationsStat3()
87 90
   },
88 91
   watch: {
89 92
 
@@ -107,6 +110,21 @@ export default {
107 110
         params[0].data.cs || "--"}个</div>
108 111
 </div>`;
109 112
     },
113
+    dashVehicleViolationsStat1(){
114
+      api.dashVehicleViolationsStat1().then(res =>{
115
+        this.modelData.list = res.data
116
+      })
117
+    },
118
+    dashVehicleViolationsStat2(){
119
+      api.dashVehicleViolationsStat2().then(res =>{
120
+        this.modelData1.list = res.data
121
+      })
122
+    },
123
+    dashVehicleViolationsStat3(){
124
+      api.dashVehicleViolationsStat3().then(res =>{
125
+        this.bardata = res.data
126
+      })
127
+    },
110 128
   }
111 129
 }
112 130
 </script>