Browse Source

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

zouooh 1 year ago
parent
commit
5d7c0aa4e6

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

@@ -30,8 +30,8 @@
30
           :radiusArr="['30%', '70%']"
30
           :radiusArr="['30%', '70%']"
31
           :roseType = "false"
31
           :roseType = "false"
32
           :colorArr="modelPieColor"
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
           :encode="{ itemName: 'name', value: 'value' }"
35
           :encode="{ itemName: 'name', value: 'value' }"
36
         />
36
         />
37
       </div>
37
       </div>
@@ -43,8 +43,8 @@
43
           :radiusArr="['30%', '70%']"
43
           :radiusArr="['30%', '70%']"
44
           :roseType = "false"
44
           :roseType = "false"
45
           :colorArr="modelPieColor2"
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
           :encode="{ itemName: 'name', value: 'value' }"
48
           :encode="{ itemName: 'name', value: 'value' }"
49
         />
49
         />
50
       </div>
50
       </div>
@@ -57,8 +57,8 @@
57
           :radiusArr="['30%', '70%']"
57
           :radiusArr="['30%', '70%']"
58
           :roseType = "false"
58
           :roseType = "false"
59
           :colorArr="modelPieColor3"
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
           :encode="{ itemName: 'name', value: 'value' }"
62
           :encode="{ itemName: 'name', value: 'value' }"
63
         />
63
         />
64
       </div>
64
       </div>
@@ -156,29 +156,18 @@ export default {
156
     },
156
     },
157
     dashBerthsInformationStat1(){
157
     dashBerthsInformationStat1(){
158
       api.dashBerthsInformationStat1({...this.formInline}).then(res =>{
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
     dashBerthsInformationStat2(){
162
     dashBerthsInformationStat2(){
167
       api.dashBerthsInformationStat2({...this.formInline}).then(res =>{
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
     dashBerthsInformationStat3(){
167
     dashBerthsInformationStat3(){
176
       api.dashBerthsInformationStat3({...this.formInline}).then(res =>{
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
           :dataset="linedata"
35
           :dataset="linedata"
36
           :tooltipFormat="lineTooltipFormat"
36
           :tooltipFormat="lineTooltipFormat"
37
           :encode="[
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
           id="axstj"
41
           id="axstj"
41
         />
42
         />
@@ -56,7 +57,8 @@
56
           :dataset="linedata2"
57
           :dataset="linedata2"
57
           :tooltipFormat="lineTooltipFormat"
58
           :tooltipFormat="lineTooltipFormat"
58
           :encode="[
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
           id="artj"
63
           id="artj"
62
         />
64
         />
@@ -77,7 +79,8 @@
77
           :dataset="linedata3"
79
           :dataset="linedata3"
78
           :tooltipFormat="lineTooltipFormat"
80
           :tooltipFormat="lineTooltipFormat"
79
           :encode="[
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
           id="aztj"
85
           id="aztj"
83
         />
86
         />
@@ -98,7 +101,8 @@
98
           :dataset="linedata4"
101
           :dataset="linedata4"
99
           :tooltipFormat="lineTooltipFormat"
102
           :tooltipFormat="lineTooltipFormat"
100
           :encode="[
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
           id="aytj"
107
           id="aytj"
104
         />
108
         />
@@ -119,7 +123,8 @@
119
           :dataset="linedata5"
123
           :dataset="linedata5"
120
           :tooltipFormat="lineTooltipFormat"
124
           :tooltipFormat="lineTooltipFormat"
121
           :encode="[
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
           id="antj"
129
           id="antj"
125
         />
130
         />

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

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