Browse Source

fix: 泊位营收情况、停车运行监控

zouooh 1 year ago
parent
commit
5d7c0aa4e6

+ 10 - 21
src/pages/index/components/berths_information.vue

@@ -30,8 +30,8 @@
30 30
           :radiusArr="['30%', '70%']"
31 31
           :roseType = "false"
32 32
           :colorArr="modelPieColor"
33
-          :labelFormat="['{name|{b}}', '{sub|{@value} {d}%}', '{hr|}']"
34
-          :dataset="modelData.list"
33
+          :labelFormat="['{name|{b}}', '{sub|{@value} {d}%}', '{hr|}']"
34
+          :dataset="modelData"
35 35
           :encode="{ itemName: 'name', value: 'value' }"
36 36
         />
37 37
       </div>
@@ -43,8 +43,8 @@
43 43
           :radiusArr="['30%', '70%']"
44 44
           :roseType = "false"
45 45
           :colorArr="modelPieColor2"
46
-          :labelFormat="['{name|{b}}', '{sub|{@value} {d}%}', '{hr|}']"
47
-          :dataset="modelData2.list"
46
+          :labelFormat="['{name|{b}}', '{sub|{@value} {d}%}', '{hr|}']"
47
+          :dataset="modelData2"
48 48
           :encode="{ itemName: 'name', value: 'value' }"
49 49
         />
50 50
       </div>
@@ -57,8 +57,8 @@
57 57
           :radiusArr="['30%', '70%']"
58 58
           :roseType = "false"
59 59
           :colorArr="modelPieColor3"
60
-          :labelFormat="['{name|{b}}', '{sub|{@value} {d}%}', '{hr|}']"
61
-          :dataset="modelData3.list"
60
+          :labelFormat="['{name|{b}}', '{sub|{@value} {d}%}', '{hr|}']"
61
+          :dataset="modelData3"
62 62
           :encode="{ itemName: 'name', value: 'value' }"
63 63
         />
64 64
       </div>
@@ -156,29 +156,18 @@ export default {
156 156
     },
157 157
     dashBerthsInformationStat1(){
158 158
       api.dashBerthsInformationStat1({...this.formInline}).then(res =>{
159
-        let arr = [
160
-          {name: '占用', value: res.data.records[0].occupancyParkingNumber || 0},
161
-          {name: '空闲', value: res.data.records[0].remainParkingNumber || 0},
162
-        ]
163
-        this.modelData = arr || []
159
+        this.modelData = res.data
164 160
       })
165 161
     },
166 162
     dashBerthsInformationStat2(){
167 163
       api.dashBerthsInformationStat2({...this.formInline}).then(res =>{
168
-        let arr = [
169
-          {name: '有', value: res.data.records[0].hasChargingNumber || 0},
170
-          {name: '无', value: res.data.records[0].noChargingNumber || 0},
171
-        ]
172
-        this.modelData2 = arr || []
164
+        this.modelData2 = res.data
173 165
       })
174 166
     },
175 167
     dashBerthsInformationStat3(){
176 168
       api.dashBerthsInformationStat3({...this.formInline}).then(res =>{
177
-        let arr = [
178
-          {name: '有', value: res.data.records[0].hasChargeNum || 0},
179
-          {name: '无', value: res.data.records[0].noChargeNum || 0},
180
-        ]
181
-        this.modelData3 = arr || []
169
+        console.log(res.data)
170
+        this.modelData3 = res.data
182 171
       })
183 172
     },
184 173
   }

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

@@ -35,7 +35,8 @@
35 35
           :dataset="linedata"
36 36
           :tooltipFormat="lineTooltipFormat"
37 37
           :encode="[
38
-              { x: 'month', y: 'leftOut', seriesName: '出场',bool:'true' },
38
+              { x: 'mouth', y: 'lastYearAmount', seriesName: '入场',bool:'true' },
39
+              { x: 'mouth', y: 'thisYearAmount', seriesName: '出场',bool:'true' },
39 40
             ]"
40 41
           id="axstj"
41 42
         />
@@ -56,7 +57,8 @@
56 57
           :dataset="linedata2"
57 58
           :tooltipFormat="lineTooltipFormat"
58 59
           :encode="[
59
-              { x: 'month', y: 'comeIn', seriesName: '出场',bool:'true' },
60
+               { x: 'mouth', y: 'lastYearAmount', seriesName: '入场',bool:'true' },
61
+              { x: 'mouth', y: 'thisYearAmount', seriesName: '出场',bool:'true' },
60 62
             ]"
61 63
           id="artj"
62 64
         />
@@ -77,7 +79,8 @@
77 79
           :dataset="linedata3"
78 80
           :tooltipFormat="lineTooltipFormat"
79 81
           :encode="[
80
-              { x: 'month', y: 'comeIn', seriesName: '出场',bool:'true' }
82
+               { x: 'mouth', y: 'lastYearAmount', seriesName: '入场',bool:'true' },
83
+              { x: 'mouth', y: 'thisYearAmount', seriesName: '出场',bool:'true' },
81 84
             ]"
82 85
           id="aztj"
83 86
         />
@@ -98,7 +101,8 @@
98 101
           :dataset="linedata4"
99 102
           :tooltipFormat="lineTooltipFormat"
100 103
           :encode="[
101
-              { x: 'month', y: 'comeIn',bool:'true' },
104
+               { x: 'mouth', y: 'lastYearAmount', seriesName: '入场',bool:'true' },
105
+              { x: 'mouth', y: 'thisYearAmount', seriesName: '出场',bool:'true' },
102 106
             ]"
103 107
           id="aytj"
104 108
         />
@@ -119,7 +123,8 @@
119 123
           :dataset="linedata5"
120 124
           :tooltipFormat="lineTooltipFormat"
121 125
           :encode="[
122
-              { x: 'month', y: 'comeIn',bool:'true' }
126
+               { x: 'mouth', y: 'lastYearAmount', seriesName: '入场',bool:'true' },
127
+              { x: 'mouth', y: 'thisYearAmount', seriesName: '出场',bool:'true' },
123 128
             ]"
124 129
           id="antj"
125 130
         />

+ 1 - 1
static/mung-local-config.js

@@ -1,6 +1,6 @@
1 1
 window.mungConfig = {
2 2
   dev: {
3
-    BASE_API: "https://park.lhzhtc.cn/luohe2_ee/api"
3
+    BASE_API: "http://localhost:16399/luohe2_ee/api"
4 4
   },
5 5
   build: {
6 6
     BASE_API: "https://park.lhzhtc.cn/luohe2_ee/api"