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