|
@@ -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) {
|