zbb 1 рік тому
батько
коміт
cde7beab17

+ 46 - 1
src/api/article_z.js

@@ -13,5 +13,50 @@ export default {
13 13
   //路内泊位设置推荐
14 14
   queryGapMapContext(params) {
15 15
     return axios.post(`/dash/gap/analysis/stat1`, params)
16
-  }
16
+  },
17
+
18
+  // todo 设备运营主题(地图)
19
+  queryServiceMap(params) {
20
+    return axios.post(`/dash/service/operations/page`, params)
21
+  },
22
+  // todo 区域停车主题_区域饱和度
23
+  queryParkingArea_Qybhd(params) {
24
+    return axios.post(`/dash/parking/area/stat1`, params)
25
+  },
26
+  // todo 区域停车主题_停车热度时空分布
27
+  queryParkingArea_Tcrdskfb(params) {
28
+    return axios.post(`/dash/parking/area/stat3`, params)
29
+  },
30
+  // 区域停车主题_停车饱和度
31
+  queryParkingOperate_Tcbhd(params) {
32
+    return axios.post(`/dash/parking/operate/stat1`, params)
33
+  },
34
+  // 区域停车主题_停车场周转率分析
35
+  queryParkingOperate_Tczzlfx(params) {
36
+    return axios.post(`/dash/parking/operate/stat2`, params)
37
+  },
38
+  // 区域停车主题_停车场营收分析
39
+  queryParkingOperate_Tccysfx(params) {
40
+    return axios.post(`/dash/parking/operate/stat3`, params)
41
+  },
42
+  // 区域停车主题_特殊车辆进场占比
43
+  queryParkingOperate_Tscljczb(params) {
44
+    return axios.post(`/dash/parking/operate/stat4`, params)
45
+  },
46
+  // 区域停车主题_车辆进出场趋势
47
+  queryParkingOperate_Cljccqs(params) {
48
+    return axios.post(`/dash/parking/operate/stat5`, params)
49
+  },
50
+  // 区域停车主题_停车场营收对比分析
51
+  queryParkingOperate_Tccysdbfx(params) {
52
+    return axios.post(`/dash/parking/operate/stat6`, params)
53
+  },
54
+  // 区域停车主题_泊位盈余情况
55
+  queryBerthPerationNalysis_Bwyyqk(params) {
56
+    return axios.post(`/dash/berth/peration/nalysis/surplus`, params)
57
+  },
58
+  // 区域停车主题_泊位周转率分析
59
+  queryBerthPerationNalysis_Bwzzlfx(params) {
60
+    return axios.post(`/dash/berth/peration/nalysis/turnover`, params)
61
+  },
17 62
 }

+ 14 - 1
src/pages/index/components/berth_peration_nalysis.vue

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3 3
     <div class="page-container">
4
-      <h2 style="color: white">泊位运营分析</h2>
4
+      <h2 style="color: #3498db;">泊位运营分析</h2>
5 5
       <div style="width: 99%; height: 350px">
6 6
         <linechart
7 7
           :autoStop="false"
@@ -39,6 +39,7 @@
39 39
 </template>
40 40
 <script>
41 41
 import linechart from "@/components/lineChart";
42
+import api from "@/api/article_z";
42 43
 
43 44
 
44 45
 export default {
@@ -54,11 +55,23 @@ export default {
54 55
     }
55 56
   },
56 57
   mounted() {
58
+    this.getLinedata1Data()
59
+    this.getLinedataData()
57 60
   },
58 61
   watch: {
59 62
 
60 63
   },
61 64
   methods: {
65
+    getLinedata1Data(){
66
+      api.queryBerthPerationNalysis_Bwzzlfx().then(res=>{
67
+        this.linedata1=res.data;
68
+      })
69
+    },
70
+    getLinedataData(){
71
+      api.queryBerthPerationNalysis_Bwyyqk().then(res=>{
72
+        this.linedata=res.data;
73
+      })
74
+    },
62 75
     lineTooltipFormat(params) {
63 76
       const data = params[0].data;
64 77
       return `<div class="line-tooltip">

+ 1 - 1
src/pages/index/components/charge_business_analysis.vue

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3 3
     <div style="width: 99%; height: 300px">
4
-      <h2 style="color: white">收费业务分析</h2>
4
+      <h2 style="color: #3498db;">收费业务分析</h2>
5 5
       <h4 style="color: white">收费数据分析</h4>
6 6
       <barchart
7 7
         class="side-chart"

+ 42 - 5
src/pages/index/components/parking_operate.vue

@@ -117,6 +117,7 @@ import piechart from "@/components/pieChart";
117 117
 import linechart from "@/components/lineChart";
118 118
 import barchart from "@/components/barChart";
119 119
 import vtable from "@/components/vtableNew";
120
+import api from "@/api/article_z";
120 121
 
121 122
 
122 123
 export default {
@@ -135,9 +136,9 @@ export default {
135 136
       linedata: [{month: '星期一',lastYearAmount: 2300, thisYearAmount: 4740}, {month: '星期二', lastYearAmount:3050, thisYearAmount:5600}
136 137
         , {month: '星期三', lastYearAmount:2710, thisYearAmount:3781}, {month: '星期四', lastYearAmount:2670, thisYearAmount:4737}, {month: '星期五', lastYearAmount:3200, thisYearAmount:5252}
137 138
         , {month: '星期六', lastYearAmount:4030, thisYearAmount:6160}, {month: '星期天', lastYearAmount:4890, thisYearAmount:6979}],
138
-      linedata1: [{month: '星期一', lastAmount: 38}, {month: '星期二', lastAmount:41}
139
-        , {month: '星期三', lastAmount:33}, {month: '星期四', lastAmount:23}, {month: '星期五', lastAmount:35}
140
-        , {month: '星期六', lastAmount:45}, {month: '星期天', lastAmount:59}],
139
+      linedata1: [{month: '星期一', lastYearAmount: 38}, {month: '星期二', lastYearAmount:41}
140
+        , {month: '星期三', lastYearAmount:33}, {month: '星期四', lastYearAmount:23}, {month: '星期五', lastYearAmount:35}
141
+        , {month: '星期六', lastYearAmount:45}, {month: '星期天', lastYearAmount:59}],
141 142
       linedata2: [{month: '星期一',lastYearAmount: 21, thisYearAmount: 51}, {month: '星期二', lastYearAmount:38, thisYearAmount:42}
142 143
         , {month: '星期三', lastYearAmount:27, thisYearAmount:25}, {month: '星期四', lastYearAmount:23, thisYearAmount:20}, {month: '星期五', lastYearAmount:52, thisYearAmount:34}
143 144
         , {month: '星期六', lastYearAmount:58, thisYearAmount:32}, {month: '星期天', lastYearAmount:68, thisYearAmount:37}],
@@ -152,17 +153,53 @@ export default {
152 153
     }
153 154
   },
154 155
   mounted() {
156
+    this.getBardataData()
157
+    this.getLinedata1Data()
158
+    this.getLinedataData()
159
+    this.getModelDataData()
160
+    this.getLinedata2Data()
161
+    this.getLinedata3Data()
155 162
   },
156 163
   watch: {
157 164
 
158 165
   },
159 166
   methods: {
160
-
167
+    //初始化
168
+    getBardataData(){
169
+      api.queryParkingOperate_Tcbhd().then(res=>{
170
+        this.bardata=res.data;
171
+      })
172
+    },
173
+    getLinedata1Data(){
174
+      api.queryParkingOperate_Tczzlfx().then(res=>{
175
+        this.linedata1=res.data;
176
+      })
177
+    },
178
+    getLinedataData(){
179
+      api.queryParkingOperate_Tccysfx().then(res=>{
180
+        this.linedata=res.data;
181
+      })
182
+    },
183
+    getModelDataData(){
184
+      api.queryParkingOperate_Tscljczb().then(res=>{
185
+        this.modelData.list=res.data;
186
+      })
187
+    },
188
+    getLinedata2Data(){
189
+      api.queryParkingOperate_Cljccqs().then(res=>{
190
+        this.linedata2=res.data;
191
+      })
192
+    },
193
+    getLinedata3Data(){
194
+      api.queryParkingOperate_Tccysdbfx().then(res=>{
195
+        this.linedata3=res.data;
196
+      })
197
+    },
161 198
     lineTooltipFormat1(params) {
162 199
       const data = params[0].data;
163 200
       return `<div class="line-tooltip">
164 201
         <div style="color: ${params[0].color}">${params[0].seriesName}: ${
165
-        params[0].data.lastAmount || "--"
202
+        params[0].data.lastYearAmount || "--"
166 203
       }(%)</div>`;
167 204
     },
168 205
     lineTooltipFormat(params) {

+ 2 - 2
src/pages/index/components/saturation_warning.vue

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div class="body-wrapper">
3
-    <div style="color: white;font-size: 23px;margin-bottom: 20px">全市停车饱和度</div>
3
+    <div style="color: #3498db;font-size: 23px;margin-bottom: 20px">全市停车饱和度</div>
4 4
     <el-form class="form-wrapper" :inline="true" :model="formInline">
5 5
       <el-form-item label="区县:">
6 6
         <el-select v-model="formInline.region0" placeholder="区县" popper-class="cur-select">
@@ -55,7 +55,7 @@
55 55
         id="sxcyfzqk"
56 56
       />
57 57
       <div class="body-wrapper" style=" height: 450px">
58
-        <div style="color: white;font-size: 23px;margin-bottom: 20px">网格化停车饱和预警</div>
58
+        <div style="color: #3498db;font-size: 23px;margin-bottom: 20px">网格化停车饱和预警</div>
59 59
         <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
60 60
           <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
61 61
           </el-table-column>